buffer library
Classes
- ByteDataReader
- A class for parsing byte arrays.
- ByteDataWriter
- A class for building byte arrays with a BytesBuffer and a fixed-length work buffer.
- BytesBuffer
- A class for concatenating byte arrays efficiently.
Functions
-
castBytes(
List< int> bytes, {bool copy = false}) → Uint8List - Cast the list of bytes into a typed Uint8List.
-
readAsBytes(
Stream< List< stream, {int? maxLength, bool copy = false}) → Future<int> >Uint8List> -
Read
stream
into a typed byte buffer. -
readAsString(
Stream< List< stream, {Encoding? encoding}) → Future<int> >String> -
Read
stream
into a String. -
sliceStream(
Stream< List< stream, int sliceLength, {int? maxLength, bool copy = false}) → Stream<int> >Uint8List> -
Read
stream
and slice the content into chunks with target/max length ofsliceLength
.