encode method

  1. @override
Uint8List encode()
override

Implementation

@override
Uint8List encode() {
  final buffer = ByteDataWriter(endian: Endian.little);
  // Write the COM_STMT_CLOSE command (0x19)
  buffer.writeUint8(0x19);
  // Write the statement ID (4 bytes, little-endian)
  buffer.writeUint32(stmtID, Endian.little);
  return buffer.toBytes();
}