BufferSerializable extension

Big Int Extension

on

Properties

byteLength int

Available on BigInt, provided by the BufferSerializable extension

The minimum number of bytes required to store this big integer.
no setter

Methods

asSigned() BigInt

Available on BigInt, provided by the BufferSerializable extension

Returns the value as a signed big integer.
toUint64Buffer() Uint8List

Available on BigInt, provided by the BufferSerializable extension

Converts this BigInt into an 8-byte Uint8List.
toUint8List([int? length]) Uint8List

Available on BigInt, provided by the BufferSerializable extension

Converts this BigInt into a Uint8List of size length.

Static Methods

from(Object value) BigInt

Available on BigInt, provided by the BufferSerializable extension

Creates a BigInt from an existing BigInt or int value.
fromUint8List(Iterable<int> bytes, [Endian endian = Endian.little]) BigInt

Available on BigInt, provided by the BufferSerializable extension

Creates a BigInt from an array of bytes.