BytesReader constructor
Builds a BytesReader from a byte list
list
: The byte liststringEncoder
: The optional String encoder
Implementation
BytesReader(Uint8List list, {Encoding? stringEncoder})
: _list = list,
_data = ByteData.view(list.buffer, list.offsetInBytes),
_stringEncoder = stringEncoder ?? Utf8Codec();