Home | Libraries | People | FAQ | More |
Converts a hex string to a number. Out buffer can be same as in buffer.
Note that this routine is about 43% slower than to_hex_string(), half of which is due to input validation.
size_t utils::from_hex_string(char * out, size_t outlen, const char * in, size_t inlen)
Type |
Concept |
Name |
Description |
---|---|---|---|
char * |
out |
||
size_t |
outlen |
||
const char * |
in |
||
size_t |
inlen |
#include <boost/afio/v2/afio.hpp>
O(N) where N is the length of the string.
Throws exception if output buffer is too small for input or input size is not multiple of two.