ElemRange class
The inclusive range an integer array's elements may take under the schema —
the range of an InlineInt64Array — or, as ElemRange.boolean, the rule
of a boolean array.
Both bounds are int, which is what the decoder produces: a signed element
arrives zig-zag-decoded, an unsigned one raw, and Dart's int is the same
64-bit two's-complement word either way.
The widest NARROWED unsigned kind is u32, so max never reaches 2^63 and
an unsigned wire value whose top bit is set — which Dart's int shows as
negative — is always out of range. That is why the unsigned comparison reads
raw < 0 || raw > max rather than raw > max: an unsigned compare, written
in a language without one.
Constructors
Properties
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
Constants
- boolean → const ElemRange
-
The rule of a
booleanarray (CORELIB_PLAN §4.4): every element is in range, and every one other than0is held as1— so a decoded2reads back as thetrueit is and re-encodes canonically. It rides therangechannel so an array with neither a width nor booleans pays nothing for it.