CoapBlockOption class abstract

This class describes the block options of the CoAP messages

Inheritance
Mixed in types
Implementers

Constructors

CoapBlockOption(BlockOptionType blockOptionType, int value)
Base construction
CoapBlockOption.fromParts(BlockOptionType blockOptionType, int num, BlockSize szx, {bool m = false})
num - Block number szx - Block size m - More flag
CoapBlockOption.parse(BlockOptionType blockOptionType, Uint8Buffer bytes)

Properties

blockValueBytes → Uint8Buffer
Block bytes
no setter
byteValue → Uint8Buffer
Returns a byte representation of this Option's value.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isDefault bool
no setterinherited
isLocationOption bool
no setterinherited
isUriOption bool
no setterinherited
length int
Gets the value's length in bytes of the option.
no setterinherited
m bool
More flag.
no setter
maxLength int
The maximum length of this Option in bytes.
no setterinherited
minLength int
The minimum length of this Option in bytes.
no setterinherited
name String
Gets the name of the option that corresponds to its type.
no setterinherited
num int
Block number.
no setter
optionFormat → OptionFormat<int>
The format of this Option.
finalinherited
optionNumber int
The assigned number of this Option.
no setterinherited
repeatable bool
Indicates if this Option is repeatable, i.e. if it can appear more than once in a CoAP message.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Gets the decoded block size in bytes (B).
no setter
szx BlockSize
Block size.
no setter
type → OptionType
Type
finalinherited
valid bool
no setterinherited
value int
The typed value of this Option.
finalinherited
valueString String
Returns a String representation of this Option's value.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited