IRMDecodeContext class
Everything a resuming reader needs to decode a chunk that does not begin at offset 0. Required whenever NEXT_OFFSET is past the source's own header.
Constructors
-
IRMDecodeContext(List<
int> bytes) -
factory
Properties
- CHARSET → String?
-
Character encoding label verbatim as the provider states it.
no setter
-
COLUMN_NAMES
→ List<
String> ? -
Column names in source order, when the publisher parsed them. Advisory:
HEADER_LINE is authoritative and a disagreement is resolved in its favour.
no setter
-
columnNames
→ List<
String> ? -
no setter
- COMPRESSION → String?
-
Stream-compression codec applied to the source bytes, verbatim and
lowercase. Empty means the ranged bytes are read as-is. Non-empty means
NEXT_OFFSET is a position in the COMPRESSED stream and DECODER_STATE,
WINDOW and PARTIAL_RECORD are all required to resume.
no setter
- DECODED_OFFSET → int
-
Position in the DECODED stream corresponding to NEXT_OFFSET, when the
source is compressed. 0 with a non-empty COMPRESSION means the decoded
stream has not been advanced.
no setter
- decodedOffset → int
-
no setter
- DECODER_BUILD_ID → String?
-
Build identifier of the decoder that produced DECODER_STATE, verbatim, so
two builds of one codec version are still distinguishable.
no setter
-
DECODER_STATE
→ List<
int> ? -
Serialized, pointer-free image of the decoder at the seam — the state a
codec with no restart point needs in order to have one. Opaque to every
consumer but a decoder whose stamps match exactly. Never partially applied.
no setter
- DECODER_STATE_BYTE_LENGTH → int
-
Byte length DECODER_STATE is expected to have. Carried even though the
vector knows its own size, so a size disagreement is detectable BEFORE the
image is loaded into a differently shaped struct.
no setter
- DECODER_STATE_FORMAT → String?
-
Layout identifier of DECODER_STATE, verbatim, naming the decoder struct the
image was taken from. A consumer that does not know the token restarts.
no setter
- DECODER_STATE_MEDIA_TYPE → String?
-
Media type of DECODER_STATE, so an unrelated decoder refuses it instead of
misreading it.
no setter
- DECODER_STATE_SHA256 → String?
-
SHA-256 of DECODER_STATE as 64 lowercase hexadecimal characters.
no setter
- DECODER_STATE_VERSION → String?
-
Version of that layout, verbatim. Any disagreement restarts the job.
no setter
- decoderBuildId → String?
-
no setter
-
decoderState
→ List<
int> ? -
no setter
- decoderStateByteLength → int
-
no setter
- decoderStateFormat → String?
-
no setter
- decoderStateMediaType → String?
-
no setter
- decoderStateSha256 → String?
-
no setter
- decoderStateVersion → String?
-
no setter
- DELIMITER → String?
-
Field delimiter verbatim.
no setter
- ESCAPE → String?
-
Escape character verbatim.
no setter
- FORMAT → String?
-
Format token the decoder dispatches on, verbatim and lowercase, e.g.
text/csv. A consumer that does not implement the format refuses the chunk rather than guessing at a layout.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- HEADER_BYTE_LENGTH → int
-
Byte length the header occupied at the start of the source, including its
terminator, so a reader can tell a header-bearing prefix from a data row.
no setter
- HEADER_LINE → String?
-
The source's header line verbatim, exactly as it appeared at offset 0 and
excluding its line terminator. This is the field that makes chunk N>0
decodable; without it a headerless chunk parses to zero rows and looks like
a clean tail.
no setter
- headerByteLength → int
-
no setter
- headerLine → String?
-
no setter
- LINE_TERMINATOR → String?
-
Record terminator verbatim, e.g.
\nor\r\n.no setter - lineTerminator → String?
-
no setter
-
PARTIAL_RECORD
→ List<
int> ? -
The bytes of the record that straddles the seam: everything the previous
chunk decoded of a record it could not finish. A resuming decoder prepends
these to the next chunk's decoded output before parsing. Carried as bytes,
not text, because a seam may fall inside a multi-byte character.
no setter
-
partialRecord
→ List<
int> ? -
no setter
- QUOTE → String?
-
Quote character verbatim.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
WINDOW
→ List<
int> ? -
The decoder's history window at the seam — the bytes that ARE the codec's
back-reference dictionary. Carried separately from DECODER_STATE because it
is bulk data of a size the codec fixes, not part of the struct image.
no setter
- WINDOW_BYTE_LENGTH → int
-
Byte length WINDOW is expected to have, for the same detect-before-load
reason as DECODER_STATE_BYTE_LENGTH.
no setter
- WINDOW_POSITION → int
-
Offset into WINDOW at which the codec will next write, when the window is
a circular buffer whose contents cannot be interpreted without it.
no setter
- windowByteLength → int
-
no setter
- windowPosition → int
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
reader
→ const Reader<
IRMDecodeContext>