IOBuffer is a class that can be used to read and write data to and from a binary buffer

Constructors

Properties

_currentPosition: number
_decoder: TextDecoder = ...
_view: DataView
buffer: ArrayBuffer
length: number

Methods

  • Update the position of the pointer

    Parameters

    • numBytes: number

      the number of bytes to advance the pointer

    Returns number

    the previous position

  • Parameters

    • numBytes: number

    Returns string