encoding/base64
CUE v0.18.0
Package base64 implements base64 encoding as specified by RFC 4648.
Functions
Decode
Decode: func(encoding: null, s: string) -> bytes
Decode 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) -> int
DecodedLen 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) -> string
Encode 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) -> int
EncodedLen 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.