Class BufferReaderInternal

Represents an ArrayBuffer reader.

Hierarchy (view full)

Properties

buffer: ArrayBufferLike

Buffer that is being read.

nextByte: number = 0

Next byte to read.

viewer: DataView

Data view for the buffer.

Methods

  • Read the next unsigned byte.

    Returns number

  • Resize the ArrayBuffer and increment the next byte.

    Parameters

    • by: number

      The amount of bytes to increment by

    Returns number

    The byte that now has by bytes to write to.

Constructors