receive method

void receive(
  1. Uint8List data
)

Implementation

void receive(Uint8List data) {
  final newBuffer = Uint8List(_receiveBuffer.length + data.length);
  newBuffer.setAll(0, _receiveBuffer);
  newBuffer.setAll(_receiveBuffer.length, data);
  _receiveBuffer = newBuffer;
}