primitive val Base64
new val create() : Base64 val^
Encode for PEM (RFC 1421).
fun box encode_pem( data: ReadSeq[U8 val] box) : String iso^
Encode for MIME (RFC 2045).
fun box encode_mime( data: ReadSeq[U8 val] box) : String iso^
Encode for URLs (RFC 4648). Padding characters are stripped by default.
fun box encode_url[optional A: Seq[U8 val] iso]( data: ReadSeq[U8 val] box, pad: Bool val = false) : A^
Configurable encoding. The defaults are for RFC 4648.
fun box encode[optional A: Seq[U8 val] iso]( data: ReadSeq[U8 val] box, at62: U8 val = 43, at63: U8 val = 47, pad: U8 val = 61, linelen: USize val = 0, linesep: String val = " ") : A^
Decode for URLs (RFC 4648).
fun box decode_url[optional A: Seq[U8 val] iso]( data: ReadSeq[U8 val] box) : A^ ?
Configurable decoding. The defaults are for RFC 4648. Missing padding is not an error. Non-base64 data, other than whitespace (which can appear at any time), is an error.
fun box decode[optional A: Seq[U8 val] iso]( data: ReadSeq[U8 val] box, at62: U8 val = 43, at63: U8 val = 47, pad: U8 val = 61) : A^ ?
fun box eq( that: Base64 val) : Bool val
fun box ne( that: Base64 val) : Bool val
Encode a single byte.
fun box _enc_byte( i: U8 val, at62: U8 val, at63: U8 val) : U8 val ?
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/encode-base64-Base64