Skip to content

BigInt.ToBytes

Name Mandatory Description Default Type
⬅️ Input Big integer represented as bytes. Bytes
Output ➡️ The resulting output of the shard Bytes
Bits No The desired amount of bits for the output or 0 for automatic packing. 0 Int

Examples

1
2
3
4
42 | BigInt
BigInt.ToBytes(Bits: 16)
ToHex
Assert.Is("0x002a" true)