Writebuffer class

Constructors

Writebuffer.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appendFloat4(double value) → void
Converts four bytes from the read buffer to a float.
appendInt1(int value) → void
appendInt2(int value) → void
Converts four bytes from the read buffer to a signed int.
appendInt4(int value) → void
Converts four bytes from the read buffer to a signed int.
appendInt5(int value) → void
appendInt8(int value) → void
Converts eight bytes from the read buffer to a signed int.
appendSignedInt(int value) → void
the first bit of each byte is used for continuation info, the other six (last byte) or seven (all other bytes) bits for data. the value of the first bit is 1 if the following byte belongs to the field, 0 otherwise. each byte holds six (last byte) or seven (all other bytes) bits of the numeric value, starting with the least significant ones. the second bit in the last byte indicates the sign of the number. A value of 0 means positive, 1 negative. numeric value is stored as magnitude for negative values (as opposed to two's complement).
appendString(String value) → void
appendStringWithoutLength(String value) → void
appendUInt2(int value) → void
Converts four bytes from the read buffer to a signed int.
appendUint8(List<int> values) → void
appendUnsignedInt(int value) → void
Converts an unsigned int to a variable amount of bytes The first bit of each byte is used for continuation info, the other seven bits for data. the value of the first bit is 1 if the following byte belongs to the field, 0 otherwise. each byte holds seven bits of the numeric value, starting with the least significant ones.
appendWritebuffer(Writebuffer other) → void
getUint8List() Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeIntoAt(int position, RandomAccessFile raf) Future<void>
writeToSink(SinkWithCounter sink) → void

Operators

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

Static Properties

ENHANCE_BUFFER_BYTES int
final