MultiResultParser class
Parser for multi-result protocol.
Decodes binary data returned from FFI's odbc_exec_query_multi
function. The multi-result format consists of a count followed by
multiple items, where each item has a tag, length, and payload.
Binary format (little-endian):
- Bytes 0-3: Item count (u32)
- For each item:
- Byte 4: Tag (0 = ResultSet, 1 = RowCount)
- Bytes 5-8: Payload length (u32)
- Bytes 9+: Payload data
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
getFirstResultSet(
List< MultiResultItem> items) → ParsedRowBuffer - Returns the first result set from a multi-result response.
-
parse(
Uint8List data) → List< MultiResultItem> - Parses multi-result binary data into a list of items.
Constants
- headerSize → const int
- Header size: 4 bytes for item count.
- itemHeaderSize → const int
- Header size for each item: 1 (tag) + 4 (length) bytes.
- tagResultSet → const int
- Magic number for multi-result validation (not currently used). Tag for result set item.
- tagRowCount → const int
- Tag for row count item.