Package base64 implements base64 encoding as specified by RFC 4648.

Static methods

staticinlinebenchmarkDecodeString(_b:Ref<B>):Void

staticinlinebenchmarkEncodeToString(_b:Ref<B>):Void

staticinlinebenchmarkNewEncoding(_b:Ref<B>):Void

staticinlinenewDecoder(_enc:Ref<Encoding>, _r:Reader):Reader

NewDecoder constructs a new base64 stream decoder.

staticinlinenewEncoder(_enc:Ref<Encoding>, _w:Writer):WriteCloser

NewEncoder returns a new base64 stream encoder. Data written to the returned writer will be encoded using enc and then written to w. Base64 encodings operate in 4-byte blocks; when finished writing, the caller must Close the returned encoder to flush any partially written blocks.

staticinlinenewEncoding(_encoder:GoString):Ref<Encoding>

NewEncoding returns a new padded Encoding defined by the given alphabet, which must be a 64-byte string that does not contain the padding character or CR / LF ('\r', '\n'). The alphabet is treated as sequence of byte values without any special treatment for multi-byte UTF-8. The resulting Encoding uses the default padding character ('='), which may be changed or disabled via WithPadding.

staticinlinetestBig(_t:Ref<T_>):Void

staticinlinetestDecode(_t:Ref<T_>):Void

staticinlinetestDecodeBounds(_t:Ref<T_>):Void

staticinlinetestDecodeCorrupt(_t:Ref<T_>):Void

staticinlinetestDecodedLen(_t:Ref<T_>):Void

staticinlinetestDecoder(_t:Ref<T_>):Void

staticinlinetestDecoderBuffering(_t:Ref<T_>):Void

staticinlinetestDecoderIssue15656(_t:Ref<T_>):Void

staticinlinetestDecoderIssue3577(_t:Ref<T_>):Void

tests that we don't ignore errors from our underlying reader

staticinlinetestDecoderIssue4779(_t:Ref<T_>):Void

staticinlinetestDecoderIssue7733(_t:Ref<T_>):Void

staticinlinetestDecoderRaw(_t:Ref<T_>):Void

staticinlinetestEncode(_t:Ref<T_>):Void

staticinlinetestEncodedLen(_t:Ref<T_>):Void

staticinlinetestEncoder(_t:Ref<T_>):Void

staticinlinetestEncoderBuffering(_t:Ref<T_>):Void

staticinlinetestNewLineCharacters(_t:Ref<T_>):Void