BinaryWriter class

Constructors

BinaryWriter()

Properties

chunk Uint8List
Chunked the write operation and returns a wrapped {@link ByteBuffer} object. After calling this method, writer will be reset and write from the beginning.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
no setter
position int
Sets this reader's position. If new position is negative, it is treated as current_position() + new_position
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putByte(int byte) → void
Writes the given byte.
putBytes(List<int> bytes, {int start = 0, int length = -1}) → void
This method transfers bytes into this writer from the given source array.
putChar(int c) → void
putDouble(double num) → void
Writes eight bytes containing the given double value, in little-endian order.
putInt64(int num) → void
Writes eight bytes containing the given long value, in little-endian order.
putVarint(int num) int
Writes an unsigned integer as a base-128 varint. The number is written, 7 bits at a time, from the least significant to the most significant 7 bits. Each byte, except the last, has the MSB set.
reset() BinaryWriter
After calling this method, writer will be reset and write from the beginning.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited