Utility functions.
More...
#include <DigitalAuthenticationFramework.h>
List of all members.
Static Public Member Functions |
static DAData | mkData (const void *data, size_t len) |
| Create a DAData from pointer and length.
|
static DAData | mkData (std::string &str) |
| Create a DAData from a std::string.
|
static DAData | mkData (const char *str) |
| Create a DAData from a C string.
|
Detailed Description
Member Function Documentation
static DAData DAUtils::mkData |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| [inline, static] |
Create a DAData from pointer and length.
- Parameters:
-
data | pointer to data; this will be copied into the DAData object |
len | length of data in bytes |
static DAData DAUtils::mkData |
( |
const char * |
str | ) |
[inline, static] |
Create a DAData from a C string.
- Parameters:
-
str | Null-terminated C string to be copied. strlen(str) bytes are copied - this will not include the terminating 0 byte. |
static DAData DAUtils::mkData |
( |
std::string & |
str | ) |
[inline, static] |
Create a DAData from a std::string.
- Parameters:
-
str | String to be copied. str.size() bytes are copied - this will not add a terminating 0 byte at the end. |
The documentation for this class was generated from the following file: