IntMatrixSeq class
Collects the rows of an integer matrix — an array whose elements are compact
integer arrays — each row decoded straight into its slot of out.
signed selects which wire kind is this array's: a row arriving as the
other one contradicts the declared element type and is skipped (§7.3), not
rejected. lo/hi bound each element to its declared width (§7.1); equal
values mean "nothing narrower than the wire to check". A bool matrix is an
unsigned one with no width and boolean set: every row carries
ElemRange.boolean, so any non-zero element is held as 1 (§4.4).
A row here is a real compact array with a real element_count on the wire,
so it carries a second pair of bounds beside the row index: rowCount, the
row's declared count:, and rowCap, the receiver's cap where the schema
declared none. Both are weighed at the row's header, before its storage is
chosen (§6.2.1).
- Inheritance
-
- Object
- MessageVisitor
- IntMatrixSeq
Constructors
Properties
- cap → int
-
The schema
count:of the matrix — the row index bound (-1: none).final - hashCode → int
-
The hash code for this object.
no setterinherited
-
out
→ List<
InlineInt64Array> -
final
- range → ElemRange?
-
The declared element width every row carries — ElemRange.boolean for a
boolmatrix — ornullfor none.final - rcap → int
-
The receiver cap on the row index — see StringSeq.rcap.
final
- rowCap → int
-
The receiver cap on a row's element count, used only where the schema
declared no row
count(rowCount < 0). Required, and positive where it governs, for the reason rcap is.final - rowCount → int
-
The schema
count:of a row — its element count bound (-1: none).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signed → bool
-
final
Methods
-
invalidate(
) → void -
Reject the running decode as
INVALIDfrom inside a callback.inherited -
limitExceeded(
) → void -
Reject the running decode as DecodeStatus.limitExceeded from inside a
callback — the receiver-cap counterpart of invalidate.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBlob(
int id, int length) → InlineBytes? -
A
blobfield announcinglengthbytes. Return the destination —capacityat leastlength— ornullto skip it.inherited -
onFp32(
int id, double value) → void -
inherited
-
onFp32Array(
int id, int count) → InlineFloat32Array? -
An fp32 array announcing
countelements, asked once itsfixlen_wordhas been read and validated — so the element kind is the real one, never a collapsed "fixlen" (§4.8). A message that ends between the count and that word is INCOMPLETE: the field cannot be identified yet.inherited -
onFp32Bits(
int id, int bits) → void -
Delivered for an fp32 field whose payload is a NaN, carrying the raw
32-bit IEEE-754 bit pattern so a signaling NaN survives bit-for-bit — a
Dart
doublewould quiet it (CORELIB_PLAN §4.6: never normalize). The default widens to adoubleand forwards to onFp32, so a consumer that does not care about NaN bit patterns needs no change; override this to capture the exact bits (and re-emit them withEncoder.writeFp32Bits).inherited -
onFp64(
int id, double value) → void -
inherited
-
onFp64Array(
int id, int count) → InlineFloat64Array? -
An fp64 array announcing
countelements — see onFp32Array.inherited -
onSequenceEnd(
) → void -
The sequence whose fields this visitor received has closed.
inherited
-
onSequenceStart(
int id) → MessageVisitor? -
A sequence opened. Return the visitor for its fields (which follows the
same contract, recursively —
thisfor a flat consumer), ornullto skip the whole sub-sequence.inherited -
onSigned(
int id, int value) → void -
inherited
-
onSignedArray(
int id, int count) → InlineInt64Array? -
A signed (zig-zag) integer array announcing
countelements — see onUnsignedArray.override -
onString(
int id, int length) → InlineString? -
A
stringfield announcinglengthUTF-8 bytes. Return the destination to decode it into — itscapacityat leastlength— ornullto skip it.inherited -
onUnsigned(
int id, int value) → void -
inherited
-
onUnsignedArray(
int id, int count) → InlineInt64Array? -
An unsigned-integer array announcing
countelements. Return the destination —capacityat leastcount— ornullto skip it. Itsrange, if set, is applied to every element as it is decoded.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited