Readbuffer class
A chunk of a file.
Constructors
- Readbuffer.new(Uint8List _bufferData, int? _offset)
- Default constructor to open a buffer for reading a mapfile
- Readbuffer.from(Readbuffer other)
- Creates a new Readbuffer by copying the given buffer and setting the new buffer position to 0.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBuffer(
int position, int length) → Uint8List -
getBufferPosition(
) → int - @return the current buffer position.
-
getBufferSize(
) → int - @return the current size of the read buffer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readByte(
) → int - Returns one signed byte from the read buffer.
-
readFloat(
) → double - Converts four bytes from the read buffer to a float.
-
readInt(
) → int - Converts four bytes from the read buffer to a signed int.
-
readLong(
) → int - Converts eight bytes from the read buffer to a signed long.
-
readShort(
) → int - Converts two bytes from the read buffer to a signed int.
-
readSignedInt(
) → int - Converts a variable amount of bytes from the read buffer to a signed int.
-
readTags(
List< Tag> tagsArray, int numberOfTags) → List<Tag> -
readUnsignedInt(
) → int - Converts a variable amount of bytes from the read buffer to an unsigned int.
-
readUTF8EncodedString(
) → String - Decodes a variable amount of bytes from the read buffer to a string.
-
readUTF8EncodedString2(
int stringLength) → String - Decodes the given amount of bytes from the read buffer to a string.
-
setBufferPosition(
int bufferPosition) → void - Sets the buffer position to the given offset.
-
skipBytes(
int bytes) → void - Skips the given number of bytes in the read buffer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- CHARSET_UTF8 → String
-
final