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