parse static method

ParsedRowBuffer parse(
  1. Uint8List data, {
  2. bool lazyStrings = false,
})

Parses binary protocol data into a ParsedRowBuffer (v1 and v2; ignores a trailing OUT1 block if present).

When lazyStrings is true, every text cell is wrapped in a LazyString instead of eagerly decoded to String. Equality against literal String values keeps working (row[0] == 'foo'); decode happens on first .value / toString() access. Default keeps eager decoding for compat.

Throws FormatException if the data is invalid or malformed.

Implementation

static ParsedRowBuffer parse(Uint8List data, {bool lazyStrings = false}) {
  return parseWithOutputs(data, lazyStrings: lazyStrings).rowBuffer;
}