ByteBufferDataInputStream constructor

ByteBufferDataInputStream(
  1. List<int> source, [
  2. Endian endian = Endian.big
])

Create a stream that takes its data from source with the given initial endian setting. Choose Endian.big for interoperability with java.io.DataInputStream.

Implementation

ByteBufferDataInputStream(List<int> source, [Endian endian = Endian.big])
    : this._internal(
          source is Uint8List ? source : Uint8List.fromList(source), endian);