InlineInt64Array class final

A destination for an integer array field (arrayUnsigned or arraySigned) — 64-bit elements, which is what both wire types decode to (the declared element width is a schema matter, §4.7).

Constructors

InlineInt64Array(int capacity, {ElemRange? range})
Storage for capacity elements, empty.
InlineInt64Array.of(List<int> values, {ElemRange? range})
A copy of values, length set to match — the on-ramp for encoding.

Properties

capacity → int
How many elements storage holds.
no setter
hashCode → int
The hash code for this object.
no setterinherited
length ↔ int
The number of elements in use.
getter/setter pair
range → ElemRange?
The declared element width, or null for none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage ↔ Int64List
The elements; the first length are in use.
getter/setter pair

Methods

assign(List<int> values) → void
Replaces the contents with values, growing storage if it must.
ensureCapacity(int n) → void
Grows storage to hold at least n elements, keeping the first length.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList() → List<int>
The elements in use, copied into a new growable list.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](int i) → int
operator []=(int i, int value) → void