Base32Impl.encode

Encodes source and outputs the result to range.

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

Parameters

source
Type: UBR

An InputRange to encode.

range
Type: CR

An OutputRange to receive the encoded result.

Return Value

Type: size_t

The length of the output characters.

Meta