Base32Impl.encode

Encodes source and outputs the result to range.

  1. char[] encode(UB[] source, C[] buffer)
  2. char[] encode(UBR source, C[] buffer)
  3. size_t encode(UB[] source, CR range)
    template Base32Impl(UseHex useHex = UseHex.no, UsePad usePad = UsePad.yes)
    size_t
    encode
    (
    UB : ubyte
    CR
    )
    (
    in UB[] source
    ,)
    if (
    isOutputRange!(CR, char)
    )
    out (result) { assert (result == encodeLength(source.length), "The number of put is different from the length of Base32"); }
  4. size_t encode(UBR source, CR range)

Parameters

source UB[]

An array to encode.

range CR

An OutputRange to receive the encoded result.

Return Value

Type: size_t

The length of the output characters.

Meta