On this page
Base64
primitive val Base64
  Constructors
create
new val create()
: Base64 val^
  Returns
- Base64 val^
 
Public Functions
encode_pem
Encode for PEM (RFC 1421).
fun box encode_pem(
  data: ReadSeq[U8 val] box)
: String iso^
  Parameters
Returns
- String iso^
 
encode_mime
Encode for MIME (RFC 2045).
fun box encode_mime(
  data: ReadSeq[U8 val] box)
: String iso^
  Parameters
Returns
- String iso^
 
encode_url[optional A: Seq[U8 val] 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^
  Parameters
Returns
- A^
 
encode[optional A: Seq[U8 val] iso]
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^
  Parameters
- data: ReadSeq[U8 val] box
 - at62: U8 val = 43
 - at63: U8 val = 47
 - pad: U8 val = 61
 - linelen: USize val = 0
 - linesep: String val = " "
 
Returns
- A^
 
decode_url[optional A: Seq[U8 val] iso]
Decode for URLs (RFC 4648).
fun box decode_url[optional A: Seq[U8 val] iso](
  data: ReadSeq[U8 val] box)
: A^ ?
  Parameters
Returns
- A^ ?
 
decode[optional A: Seq[U8 val] iso]
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^ ?
  Parameters
Returns
- A^ ?
 
eq
fun box eq(
  that: Base64 val)
: Bool val
  Parameters
- that: Base64 val
 
Returns
- Bool val
 
ne
fun box ne(
  that: Base64 val)
: Bool val
  Parameters
- that: Base64 val
 
Returns
- Bool val
 
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
 https://stdlib.ponylang.io/encode-base64-Base64