BlockSize enum

Enum representing the valid SZX values of CoapBlockOptions.

Inheritance

Constructors

BlockSize(int numericValue)
Constructor
const

Values

blockSize16 → const BlockSize
const BlockSize(0)
blockSize32 → const BlockSize
const BlockSize(1)
blockSize64 → const BlockSize
const BlockSize(2)
blockSize128 → const BlockSize
const BlockSize(3)
blockSize256 → const BlockSize
const BlockSize(4)
blockSize512 → const BlockSize
const BlockSize(5)
blockSize1024 → const BlockSize
const BlockSize(6)
reserved → const BlockSize
const BlockSize(7)

Properties

decodedValue int
Decodes the numericValue of this BlockSize.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
numericValue int
The numeric SZX option value, represented by a single byte.
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDecodedValue(int blockSize) BlockSize
Creates a new BlockSize value from a decoded blockSize representation, rounding it to the nearest value.
parse(int numericValue) BlockSize
Creates a new BlockSize value from a valid numericValue (0-7).

Constants

values → const List<BlockSize>
A constant List of the values in this enum, in order of their declaration.