splatBytesReader function

SplatRangeReader splatBytesReader(
  1. Uint8List bytes
)

A SplatRangeReader over a file already in memory — for tests, and for a caller that has the whole file but wants the paged path anyway.

Implementation

SplatRangeReader splatBytesReader(Uint8List bytes) =>
    (int offset, int length) async =>
        Uint8List.sublistView(bytes, offset, offset + length);