Skip to content

MTY_BytesToHex

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Convert bytes to a hex string.

This function will safely truncate overflows with a null character.

void MTY_BytesToHex(
    const void * bytes,
    size_t       size,
    char *       hex,
    size_t       hexSize
);

Parameters

bytes (const void *)

Input buffer.

size (size_t)

Size in bytes of bytes.

hex (char *)

Hex string output buffer.

hexSize (size_t)

Size in bytes of hex.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Crypto

Clone this wiki locally