If it's a number, it will initialize the buffer with the number as the buffer's length. If it's undefined, it will initialize the buffer with a default length of 8 Kb. If its an ArrayBuffer, a TypedArray, it will create a view over the underlying ArrayBuffer.
Update the last written byte offset
Checks if the memory allocated to the buffer is sufficient to store more bytes after the offset
Returns true if there is sufficient space and false otherwise
Make sure the buffer has sufficient memory to write a given byteLength at the current pointer offset If the buffer's memory is insufficient, this method will create a new buffer (a copy) with a length that is twice (byteLength + current offset)
Check if big-endian mode is used for reading and writing multi-byte values
Returns true if big-endian mode is used, false otherwise
Check if little-endian mode is used for reading and writing multi-byte values
Returns true if little-endian mode is used, false otherwise
Store the current pointer offset.
Pop the last pointer offset from the mark stack, and set the current pointer offset to the popped value
Push the current pointer offset to the mark stack
Read a byte and return false if the byte's value is 0, or true otherwise Moves pointer forward
Alias for {@link IOBuffer#readUint8}
Read n bytes and move pointer forward.
Read 1-byte ascii character and move pointer forward
Read n 1-byte ascii characters and move pointer forward
Read a 32-bit floating number and move pointer forward
Read a 64-bit floating number and move pointer forward
Read a 16-bit signed integer and move pointer forward
Read a 32-bit signed integer and move pointer forward
Read a signed 8-bit integer and move pointer forward
Read a 16-bit unsigned integer and move pointer forward
Read a 32-bit unsigned integer and move pointer forward
Read an unsigned 8-bit integer and move pointer forward
Move the pointer back to the last pointer offset set by mark
Move the pointer offset back to 0
Move the pointer to the given offset
Switches to big-endian mode for reading and writing multi-byte values
Set little-endian mode for reading and writing multi-byte values
Move the pointer n bytes forward
Export a Uint8Array view of the internal buffer. The view starts at the byte offset and its length is calculated to stop at the last written byte or the original length.
Write 0xff if the passed value is truthy, 0x00 otherwise
An alias for {@link IOBuffer#writeUint8}
Write bytes
Write the charCode of the passed string's first character to the current pointer offset
The character to set
Write the charCodes of the passed string's characters to the current pointer offset
Write a 32-bit floating number at the current pointer offset
The value to set
Write a 64-bit floating number at the current pointer offset
Write value as an 16-bit signed integer
Write a 32-bit signed integer at the current pointer offset
Write value as an 8-bit signed integer
Write value as a 16-bit unsigned integer
Write a 32-bit unsigned integer at the current pointer offset
The value to set
Write value as a 8-bit unsigned integer
Generated using TypeDoc
Class for writing and reading binary data