copyPrefix method
Copies only a header prefix without exposing the accumulator backing.
Implementation
Uint8List copyPrefix(int count) {
_checkRange(count);
return Uint8List.fromList(
Uint8List.sublistView(_data, _read, _read + count),
);
}