BigInt.encode

Encode the integer value from a BigInt to an Array of bytes

  1. Vector!ubyte encode(BigInt n, Base base)
    struct BigInt
    static
    Vector!ubyte
    encode
    ()
    (
    auto const ref BigInt n
    ,
    Base base = Binary
    )
  2. void encode(ubyte* output, BigInt n, Base base)

Parameters

n BigInt

the BigInt to use as integer source

base Base

number-base of resulting ubyte array representation

Return Value

Type: Vector!ubyte

SecureVector of bytes containing the integer with given base

Meta