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

Constructors

  • This constructor should not be called directly

    Parameters

    • arg: ArrayBuffer | Buffer

      the buffer to use

    Returns IOBuffer

Properties

_currentPosition: number
buffer: Buffer
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