static_http::base64 struct

Contents

Static functions for encoding data using the base64 encoding.

Public static functions

static auto encode(uint8_t* dst, const uint8_t* src, const uint8_t* src_end) -> uint8_t*
static auto encode(uint8_t* dst, const uint8_t* src, size_t len) -> uint8_t*
static auto encoded_length(size_t len) -> size_t

Function documentation

static uint8_t* static_http::base64::encode(uint8_t* dst, const uint8_t* src, const uint8_t* src_end)

Encode the given data into dst. Make sure that at least encoded_length(src_end-src) bytes are available in dst.

static uint8_t* static_http::base64::encode(uint8_t* dst, const uint8_t* src, size_t len)

Encode the given data into dst. Make sure that at least encoded_length(len) bytes are available in dst.

static size_t static_http::base64::encoded_length(size_t len)

Calculate the length in bytes of a base64 encoded string of length len.