Buffer holding all the binary data.
Zero-based indicating the current position used for reading from the Buffer.
Reads a byte value from the buffer.
Zero-based position to start reading in. Default: current position plus one.
The read byte.
Reads a int value from the buffer.
Zero-based position to start reading in. Default: current position plus four.
The read int.
Reads a long value from the buffer.
Zero-based position to start reading in. Default: current position plus eight.
Boolean value representing when to use the {@link Buffer#readBigUInt64LE NodeJS implementation}.
The read long.
Reads a short value from the buffer.
Zero-based position to start reading in. Default: current position plus two.
The read short.
Slices the buffer returning a new one with the desired length.
The length to slice.
Zero-based start position to slice. Default: current position plus length parameter.
A {@link Buffer} with size equals to the length parameter.
Writes a byte value to the buffer.
The value to write.
Writes a int value to the buffer.
The value to write.
Writes a long value to the buffer.
The value to write.
Boolean value representing when to use the {@link Buffer#writeBigUInt64LE NodeJS implementation}.
Writes a short value to the buffer.
The value to write.
Writes a varInt value to the buffer.
The value to write.
Encodes a number to a varInt.
The value to encode.
The encoded value as a array of bytes.
Generated using TypeDoc
Class holding a {@link Buffer} that contains binary data from a osu file, with utility methods to read and write values.