CoapBlockOption class
This class describes the block options of the CoAP messages
- Inheritance
-
- Object
- CoapOption
- CoapBlockOption
Constructors
- CoapBlockOption(OptionType type)
- Base construction
- CoapBlockOption.fromParts(OptionType type, int num, int szx, {bool m = false})
- num - Block number szx - Block size m - More flag
Properties
- blockValueBytes → Uint8Buffer
-
Block bytes
no setter
- byteValue ↔ Uint8Buffer
-
Value in bytes
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- intValue ↔ int
-
Int representation of value bytes
getter/setter pairinherited
- length → int
-
Gets the value's length in bytes of the option.
no setterinherited
- m ↔ bool
-
More flag.
getter/setter pair
- name → String
-
Gets the name of the option that corresponds to its type.
no setterinherited
- num ↔ int
-
Block number.
getter/setter pair
- rawValue ↔ int
-
The raw value
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringValue ↔ String
-
String representation of value bytes
getter/setter pairinherited
- szx ↔ int
-
Block size.
getter/setter pair
- type → OptionType
-
Type
no setterinherited
- value → dynamic
-
Gets the value of the option according to its type.
no setterinherited
Methods
-
isDefault(
) → bool -
Checks whether the option value is the default.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValue(
int num, int szx, {required bool m}) → void - Sets block params. num - Block number szx - Block size m - More flag
-
size(
) → int - Gets the decoded block size in bytes (B).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited