TLVService mixin
A service class that provides functionality for encoding and decoding Type-Length-Value (TLV) data format.
The TLV format is a flexible encoding structure used in many communication protocols and data formats. Each data unit consists of a:
- Tag: A 2-character identifier representing the type of data.
- Length: A 2-character field that specifies the length of the value.
- Value: The actual data associated with the tag, whose length is defined by the length field.
Example:
- For a TLV string like
0012345A
:- Tag:
00
- Length:
12
(indicating the value field is 12 characters long) - Value:
345A
- Tag:
- Mixin applications
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
-
tlvDecode(
String data) → List< TLV> - Decodes a TLV encoded string into a list of TLV objects.
-
tlvEncode(
List< TLV> tlvList) → String - Encodes a list of TLV objects into a TLV encoded string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited