byteView property

Uint8List get byteView

storage as bytes — the view the codec copies the wire payload into, built once per storage rather than once per array (a typed-data view costs ~200 instructions under AOT).

Implementation

Uint8List get byteView => _bytes ??= Uint8List.view(
  _storage.buffer,
  _storage.offsetInBytes,
  _storage.lengthInBytes,
);