Function liberate::string::hexdecode(::liberate::types::byte *, size_t, ::liberate::types::byte const *, size_t)

Function Documentation

size_t liberate::string::hexdecode(::liberate::types::byte *output, size_t output_size, ::liberate::types::byte const *input, size_t input_size)

Hex decode

Parameters
  • output[out] The size of the output buffer to write to.

  • output_size[in] The size of the output buffer.

  • input[in] The input buffer to hex decode.

  • input_size[in] The size of the input buffer.

Returns

the size of the output buffer used, or 0 if nothing could be transcoded (e.g. due to a too small output buffer).