BigInt.encode

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

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

Parameters

n const(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