package core.encoding.base64
A simple Base64 encoding and decoding library. Currently only supports base64 with + and / characters. A simple find and replace could be used to change to other base64 standards.
decode :: (data: [] u8, allocator: Allocator) -> [] u8
Decodes the given base64 data into a new buffer, allocated from the allocator provided.
decode_url :: (data: [] u8, allocator: Allocator) -> [] u8
Decodes the given base64 data into a new buffer, allocated from the allocator provided.
encode :: (data: [] u8, allocator: Allocator) -> [] u8
Encodes the given data in base64 into a new buffer, allocated from the allocator provided. It is the callers responsibilty to free this memory.