Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
from_hex_string

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

Description

Note that this routine is about 43% slower than to_hex_string(), half of which is due to input validation.

Synopsis
size_t utils::from_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 string.

Exception Model

Throws exception if output buffer is too small for input or input size is not multiple of two.


PrevUpHomeNext