Base32Impl.decode

Decodes source and outputs the result to range.

  1. ubyte[] decode(in C[] source, UB[] buffer = null)
  2. ubyte[] decode(CR source, UB[] buffer = null)
  3. size_t decode(in C[] source, UBR range)
    template Base32Impl(UseHex useHex = UseHex.no, UsePad usePad = UsePad.yes)
    size_t
    decode
    (
    C : dchar
    UBR
    )
    (
    in C[] source
    ,
    UBR range
    )
    if (
    !is(UBR == ubyte[]) &&
    isOutputRange!(UBR, ubyte)
    )
    out (result) { immutable expect = preciseDecodeLength(source); assert (result == expect, "The result is different from the expected"); }
  4. size_t decode(CR source, UBR range)

Parameters

source
Type: C[]

A _base32 array to decode.

range
Type: UBR

An OutputRange to receive decoded result

Return Value

Type: size_t

The number of the output characters.

Throws

Exception if source is invalid _base32 data.

Meta