createRequest method

Uint8List createRequest()
override

Constructs and returns a request command packet.

Implementation

Uint8List createRequest() {
  var buffer = FixedWriteBuffer(32);
  buffer.seekWrite(0);
  buffer.uint32 = clientFlags;
  buffer.uint32 = maxPacketSize!;
  buffer.byte = characterSet!;
  buffer.fill(23, 0);

  return buffer.data;
}