encoding/base64
CUE v0.18.0
Package base64 implements base64 encoding as specified by RFC 4648.
Functions
Decode
Decode: func(encoding: null, s: string) -> bytesDecode returns the bytes represented by the base64 string s. Encoding needs to be set to null as only StdEncoding is supported for now.
DecodedLen
DecodedLen: func(encoding: null, x: int) -> intDecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data. Encoding needs to be set to null as only StdEncoding is supported for now.
Encode
Encode: func(encoding: null, src: bytes | string) -> stringEncode returns the base64 encoding of src. Encoding needs to be set to null as only StdEncoding is supported for now.
EncodedLen
EncodedLen: func(encoding: null, n: int) -> intEncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n. Encoding needs to be set to null as only StdEncoding is supported for now.