Base32Impl.decode

Decodes source and outputs the result to range.

  1. ubyte[] decode(C[] source, UB[] buffer)
  2. ubyte[] decode(CR source, UB[] buffer)
  3. size_t decode(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 C[]

A _base32 array to decode.

range 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