CborBytesTracker class
A class for tracking and building a sequence of bytes (List
Constructors
- CborBytesTracker()
- Constructor for creating a CborBytesTracker instance.
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
-
breakDynamic(
) → void - Append a special byte (0xff) to indicate indefinite length for a dynamic element.
-
bytesLength(
int value) → int? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushBigint(
BigInt value) → void - Append a BigInt value with a specified major tag to the byte sequence in the buffer.
-
pushBytes(
List< int> chunk) → void - Append a list of integer values (chunk) to the byte sequence in the buffer.
-
pushIndefinite(
int majorTag) → void - Append a special byte representing indefinite length for the provided major tag.
-
pushInt(
int majorTag, int value) → void - Append an integer value with a specified major tag to the byte sequence in the buffer.
-
pushMajorTag(
int majorTag, int value) → void - Append a major tag and its value to the byte sequence in the buffer.
-
pushTags(
List< int> tags) → void - Append a list of CBOR tags to the byte sequence in the buffer.
-
pushUInt8(
int val) → void - Append a single UInt8 value to the byte sequence in the buffer.
-
toBytes(
) → List< int> - Retrieve the accumulated bytes as a List
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited