getSequenceId static method
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];
}