Base32Impl.encode

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

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

Parameters

source UBR

An InputRange to encode.

buffer C[]

An array to store the encoded result.

Return Value

Type: char[]

The slice of buffer containing the result.

Meta