CsafeDataStructure class
Represents a structure containing an identifier (command), and a single data element with a known length.
This is used as both the long command format and also as a piece of the response structure.
Constructors
- CsafeDataStructure(CsafeCommandIdentifier identifier, int byteCount, Uint8List data)
- CsafeDataStructure.fromBytes(Uint8List bytes)
- Reads in and parses CSAFE data from bytes
Properties
- byteCount → int
-
The size of data in bytes
final
- byteLength → int
-
calculates the length if this were written out to bytes
no setter
- data → Uint8List
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → CsafeCommandIdentifier
-
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Writes the data out to bytes
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited