Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
to_hex_string

Converts a number to a hex string. Out buffer can be same as in buffer.

Description

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.

Synopsis
size_t utils::to_hex_string(char * out, size_t outlen, const char * _in,
                     size_t inlen)
Parameters

Type

Concept

Name

Description

char *

out

size_t

outlen

const char *

_in

size_t

inlen

Header

#include <boost/afio/v2/afio.hpp>

Complexity

O(N) where N is the length of the number.

Exception Model

Throws exception if output buffer is too small for input.


PrevUpHomeNext