createRequest method

Uint8List createRequest()
override

Constructs and returns a request command packet.

Implementation

Uint8List createRequest() {
  List<int> encoded = utf8.encode(_dbName);
  var buffer = FixedWriteBuffer(encoded.length + 1);
  buffer.byte = COM_INIT_DB;
  buffer.writeList(encoded);
  return buffer.data;
}