hex_decode_digit

Synopsis

Declared in <folly/codec/hex.h>

constexpr
uint8_t
hex_decode_digit(char const h);

Description

For characters which are in the lower or upper hex alphabets, returns the decoded value. For other characters, returns a value with the high bit set.

Return Value

The decoded value of h.

Parameters

Name

Description

h

The character to decode.

Created with MrDocs