receive method

void receive(
  1. Uint8List bytes
)

Implementation

void receive(Uint8List bytes) {
  // handle trailing here
  if (isEmpty) {
    if (bytes.seekChar(_startId) case Uint8List result) copy(result);
  } else {
    add(bytes);
  }
}