Skip to content

Base64

[Source]

primitive val Base64

Constructors

create

[Source]

new val create()
: Base64 val^

Returns


Public Functions

encode_pem

[Source]

Encode for PEM (RFC 1421).

fun box encode_pem(
  data: ReadSeq[U8 val] box)
: String iso^

Parameters

Returns


encode_mime

[Source]

Encode for MIME (RFC 2045).

fun box encode_mime(
  data: ReadSeq[U8 val] box)
: String iso^

Parameters

Returns


encode_url[optional A: Seq[U8 val] iso]

[Source]

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]

[Source]

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

Returns

  • A^

decode_url[optional A: Seq[U8 val] iso]

[Source]

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]

[Source]

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

  • data: ReadSeq[U8 val] box
  • at62: U8 val = 43
  • at63: U8 val = 47
  • pad: U8 val = 61

Returns

  • A^ ?

eq

[Source]

fun box eq(
  that: Base64 val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: Base64 val)
: Bool val

Parameters

Returns