BytesReader constructor

BytesReader(
  1. Uint8List list, {
  2. Encoding? stringEncoder,
})

Builds a BytesReader from a byte list

  • list: The byte list
  • stringEncoder: The optional String encoder

Implementation

BytesReader(Uint8List list, {Encoding? stringEncoder})
    : _list = list,
      _data = ByteData.view(list.buffer, list.offsetInBytes),
      _stringEncoder = stringEncoder ?? Utf8Codec();