getSequenceId static method

int getSequenceId(
  1. Uint8List buffer, [
  2. int offset = 0
])

Implementation

@pragma('vm:prefer-inline')
static int getSequenceId(Uint8List buffer, [int offset = 0]) {
  if (offset < 0 || offset > buffer.length - 4) {
    throw MySQLProtocolException(
      'Truncated MySQL packet header: cannot read sequence ID at offset '
      '$offset (buffer length ${buffer.length})',
    );
  }
  return buffer[offset + 3];
}