Home | Libraries | People | FAQ | More |
Converts a number to a hex string. Out buffer can be same as in buffer.
Note that the character range used is a 16 item table of:
0123456789abcdef
This lets one pack one byte of input into two bytes of output.
size_t utils::to_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 number.
Throws exception if output buffer is too small for input.