copyPrefix method

Uint8List copyPrefix(
  1. int count
)

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),
  );
}