Base32Impl.decode

Decodes source and stores the result in buffer. If no _buffer is assigned, a new buffer will be created.

  1. ubyte[] decode(C[] source, UB[] buffer)
  2. ubyte[] decode(CR source, UB[] buffer)
    template Base32Impl(UseHex useHex = UseHex.no, UsePad usePad = UsePad.yes)
    ubyte[]
    decode
    (
    CR
    UB = ubyte
    )
    (,
    UB[] buffer = null
    )
    if (
    !isArray!CR &&
    isInputRange!CR
    &&
    is(ElementType!CR : dchar)
    &&
    hasLength!CR
    &&
    isOutputRange!(UB[], ubyte)
    )
    out (result) {}
  3. size_t decode(C[] source, UBR range)
  4. size_t decode(CR source, UBR range)

Parameters

source CR

A _base32 InputRange to decode.

buffer UB[]

An array to store the decoded result.

Return Value

Type: ubyte[]

The slice of buffer containing the result.

Throws

Exception if source is an invalid _base32 data.

Meta