DecodeStatus enum
The three-valued decode outcome (CORELIB_PLAN §5.2), plus limitExceeded which surfaces a receiver-side policy limit distinctly (CORELIB_PLAN §6.2.1, §6.3): the four-outcome option the spec explicitly permits.
Values
- complete → const DecodeStatus
-
Consumed bytes end exactly at a field boundary; a valid message may end here. More valid fields may still extend it.
- incomplete → const DecodeStatus
-
Bytes end inside a field (unterminated varint, short fixlen payload, or an unclosed sequence). NOT an error — feed more bytes to continue.
- invalid → const DecodeStatus
-
Bytes are malformed regardless of what follows. Terminal.
- limitExceeded → const DecodeStatus
-
A configured receiver-side technical limit was exceeded on a schema-unbounded field. The bytes are well-formed; this is a terminal policy rejection, never folded into invalid.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
values
→ const List<
DecodeStatus> - A constant List of the values in this enum, in order of their declaration.