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)
  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 UBR

An InputRange to encode.

range CR

An OutputRange to receive the encoded result.

Return Value

Type: size_t

The length of the output characters.

Meta