DataInput class

Constructors

DataInput.fromGZip(List<int> gZipBytes)
DataInput.fromUint8List(Uint8List data)
DataInput.fromZLib(List<int> zLibBytes)

Properties

data ↔ Uint8List
read / write
fileLength → int
read-only
offset → int
read-only
view ↔ ByteData
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

readBoolean() → bool
readByte([bool eofException = true]) → int
  • Returns the byte(-128 - 127) at offset. if eofException is false then
    • if it reaches the end of the stream it will return -129.
    • Otherwise it will throw an exception.
  • readBytes(int numBytes) → List<int>
    readChar([Endian endian = Endian.big]) → String
    readDouble([Endian endian = Endian.big]) → double
    readFloat([Endian endian = Endian.big]) → double
    readFully(List bytes, {int len, int off, Endian endian: Endian.big}) → void
    readInt([Endian endian = Endian.big]) → int
    readLine([Endian endian = Endian.big]) → String
    readLong([Endian endian = Endian.big]) → int
    readShort([Endian endian = Endian.big]) → int
    readUnsignedByte([bool eofException = true]) → int
  • Returns the byte(0-255) at offset. if eofException is false then
    • if it reaches the end of the stream it will return -1, Otherwise it will
    • throw an exception.
  • readUnsignedShort([Endian endian = Endian.big]) → int
    readUTF([Endian endian = Endian.big]) → String
    skipBytes(int n) → int
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed.
    inherited
    toString() → String
    Returns a string representation of this object.
    inherited

    Operators

    operator ==(dynamic other) → bool
    The equality operator.
    inherited