Digital Authentication Framework  6.0.1.37
Static Public Member Functions | List of all members
DAUtils Class Reference

Utility functions. More...

#include <DigitalAuthenticationFramework.h>

Static Public Member Functions

static DAData mkData (const void *data, size_t len)
 Create a DAData from pointer and length. More...
 
static DAData mkData (std::string &str)
 Create a DAData from a std::string. More...
 
static DAData mkData (const char *str)
 Create a DAData from a C string. More...
 

Detailed Description

Utility functions.

Member Function Documentation

static DAData DAUtils::mkData ( const void *  data,
size_t  len 
)
static

Create a DAData from pointer and length.

Parameters
datapointer to data; this will be copied into the DAData object
lenlength of data in bytes
static DAData DAUtils::mkData ( std::string &  str)
static

Create a DAData from a std::string.

Parameters
strString to be copied. str.size() bytes are copied - this will not add a terminating 0 byte at the end.
static DAData DAUtils::mkData ( const char *  str)
static

Create a DAData from a C string.

Parameters
strNull-terminated C string to be copied. strlen(str) bytes are copied - this will not include the terminating 0 byte.

The documentation for this class was generated from the following file: