Writebuffer class
Web-compatible stub implementation of Writebuffer.
This implementation provides the same API as the IO version but throws UnsupportedError for operations that require file system access, which is not available on the web platform.
The web platform typically doesn't need mapfile writing capabilities, as this is usually done on the server side or in development environments.
Constructors
Properties
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, dynamic raf) → Future< void> - File operations are not supported on the web platform.
-
writeToSink(
SinkWithCounter sink) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- ENHANCE_BUFFER_BYTES → int
-
final