NitroIntCodec class

Built-in codec for int? — backed by NitroOptInt64.

Inheritance

Constructors

NitroIntCodec()
const

Properties

encodedSize → int
Number of bytes this optional type occupies in native memory.
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

decode(Pointer<Uint8> ptr) → int?
Decode from native memory. First byte is the hasValue flag. Does NOT free the pointer — caller is responsible.
override
encode(int? v, Arena alloc) → Pointer<Uint8>
Encode value (possibly null) into Arena-allocated native memory. Returns a pointer valid for the lifetime of alloc.
override
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