Cbor class
The CBOR package main API.
Constructors
- Cbor()
- Construction
Properties
- buffer ↔ Uint8Buffer
-
latefinal
- decoder ↔ Decoder
-
getter/setter pair
- encoder ↔ Encoder
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- input ↔ Input
-
getter/setter pair
- listener → Listener
-
final
- output → Output
-
final
- rawOutput → Output
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearDecodeStack(
) → void - Clear the decode stack
-
clearEncodedOutput(
) → void - Clear the encoded output
-
decodedPrettyPrint(
[bool withHints = false]) → String? - Pretty print the decoded data
-
decodedToJSON(
) → String? - To JSON, only supports strings as map keys. Returns null if the conversion fails.
-
decodeFromBuffer(
Uint8Buffer buffer) → void - Decode from a byte buffer payload
-
decodeFromInput(
) → void - Decode from the input attribute, i.e decode what we have just encoded.
-
decodeFromList(
List< int> ints) → void - Decode from a list of integer payload
-
getDecodedData(
) → List? - Get the decoded data as a list.
-
getDecodedHints(
) → List< dataHints> - Get the decoded hints. Note you must call getDecodedData() before getting the hints.
-
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