Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Uint8ArrayReadBuffer

The default ReadBuffer implementation. Uses a {@link Uint8Array} for buffering. Is for single message read. A message can only be read once.

Hierarchy

  • Uint8ArrayReadBuffer

Implements

Index

Constructors

Properties

decoder: TextDecoder = ...
msg: DataView
offset: number = 0

Methods

  • decodeString(buf: Uint8Array): string
  • readBytes(): Uint8Array
  • readLength(): number
  • readNumber(): number
  • readString(): string
  • readUint16(): number
  • readUint32(): number
  • readUint8(): number