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)
  4. size_t decode(CR source, UBR range)
    template Base32Impl(UseHex useHex = UseHex.no, UsePad usePad = UsePad.yes)
    size_t
    decode
    (
    CR
    UBR
    )
    (,
    UBR range
    )
    if (
    !isArray!CR &&
    isInputRange!CR
    &&
    is(ElementType!CR : dchar)
    &&
    hasLength!CR
    &&
    !is(UBR == ubyte[])
    &&
    isOutputRange!(UBR, ubyte)
    )
    out (result) {}

Parameters

source CR

A _base32 InputRange 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