init(magnitude:)

Constructs a BInt from a big-endian magnitude byte array

BigInt.swift:199
init(magnitude x: Bytes)

Parameters

x

The big-endian magnitude byte array

Examples:

  • The byte array [1, 0, 0] represents BInt value 65536

  • The byte array [128, 0] represents BInt value 32768

  • The byte array [255, 127] represents BInt value 65407