base64Encode

Perform base64 encoding

  1. size_t base64Encode(char* output, const(ubyte)* input, size_t input_length, size_t input_consumed, bool final_inputs)
    size_t
    base64Encode
    (
    char* output
    ,
    const(ubyte)* input
    ,,
    ref size_t input_consumed
    ,)
  2. string base64Encode(const(ubyte)* input, size_t input_length)
  3. string base64Encode(Vector!(ubyte, Alloc) input)

Parameters

output char*

an array of at least input_length*4/3 bytes

input const(ubyte)*

is some binary data

input_length size_t

length of input in bytes

input_consumed size_t

is an output parameter which says how many bytes of input were actually consumed. If less than input_length, then the range input[consumed:length] should be passed in later along with more input.

final_inputs bool

true iff this is the last input, in which case padding chars will be applied if needed

Return Value

Type: size_t

number of bytes written to output

Meta