BigIntEncoder class

Constructors

BigIntEncoder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

MAX_UINT64 BigInt
final

Static Methods

decodeBytesToUint(Uint8List encoded) BigInt
Converts a Uint8List byte buffer into a BigInt
decodeUint64(Uint8List encoded) BigInt
encodeUint64(BigInt value) Uint8List
Encode an non-negative integer as a big-endian uint64.
encodeUintToBytes(BigInt value, int byteNum) Uint8List
Encode an non-negative integer as a big-endian general uint value. @param value The value to encode. @param byteNum The size of output bytes. @throws IllegalArgumentException if value cannot be represented by the byte array of length byteNum. @return A byte array containing the big-endian encoding of the value. Its length will be byteNum.

Constants

UINT64_LENGTH → const int