gbuffer_encode_base64()

gbuffer_encode_base64()#

Encodes the content of the given gbuffer_t * into a Base64-encoded gbuffer_t *. The input buffer is decremented in reference count after encoding.

Prototype

gbuffer_t *gbuffer_encode_base64(
    gbuffer_t *gbuf_input  // decref
);

Parameters

Key

Type

Description

gbuf_input

gbuffer_t *

The input gbuffer_t * containing the data to be Base64-encoded. This buffer is decremented in reference count after encoding.


Return Value

A new gbuffer_t * containing the Base64-encoded representation of the input buffer. Returns NULL on failure.

Notes

The caller is responsible for managing the reference count of the returned gbuffer_t *.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples