NitroDoubleWireCodec class

Built-in wire codec for double? — the byte layout of NitroOptFloat64 ([1B hasValue][8B float64 LE], packed).

Inheritance

Constructors

NitroDoubleWireCodec()
const

Properties

encodedSize → int
Number of bytes this optional type occupies on the wire, including the leading hasValue flag byte.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodeBytes(Uint8List bytes, [int byteOffset = 0]) → double?
Convenience: decodes a buffer produced by encodeBytes (or the bridge).
inherited
encodeBytes(double? value) → Uint8List
Convenience: encodes into a fresh buffer of exactly encodedSize bytes.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(ByteData bytes, int byteOffset) → double?
Decodes from byteOffset. First byte is the hasValue flag.
override
toString() → String
A string representation of this object.
inherited
write(ByteData out, int byteOffset, double? value) → void
Encodes value (possibly null) at byteOffset. Must write exactly encodedSize bytes (out is zeroed when freshly allocated, but a codec must not rely on that for the hasValue flag).
override

Operators

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