Library / System / Codecs / Base64Codec
CLASS
Base64Codec
Base64Codec.ev — base64 text<->bytes encoding (RFC 4648 standard alphabet).
Parameterized, multi-form transforms — NOT AS/INTO operators — hosted in a
NAMESPACE of free functions (no instance), called as Base64Codec.toBase64(bb).
Methods 2
METHOD toBase64(REFERENCE ByteBuffer bb) RETURNS Stringreads
ByteBuffer -> base64 String (RFC 4648 standard alphabet). Padding ('=') is included so the output is always a multiple of 4 characters. No line wrapping.
METHOD fromBase64(REFERENCE String s) RETURNS | ByteBufferreads
Base64 String -> ByteBuffer (RFC 4648 standard alphabet). Standard '+/' alphabet only (no URL-safe variant in V1). Padding required. Skips ASCII whitespace. Pipe-XOR — FAILURE on any invalid character or wrong padding.