Skip to content

MTY_BytesToBase64

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Convert bytes to a Base64 string.

This function will safely truncate overflows with a null character.

void MTY_BytesToBase64(
    const void * bytes,
    size_t       size,
    char *       base64,
    size_t       base64Size
);

Parameters

bytes (const void *)

Input buffer.

size (size_t)

Size in bytes of bytes.

base64 (char *)

Base64 string output buffer.

base64Size (size_t)

Size in bytes of base64.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Crypto

Clone this wiki locally