Options
All
  • Public
  • Public/Protected
  • All
Menu

ByteWriter is a convenient way to combine bytes into Uint8Array.

Hierarchy

  • ByteWriter

Index

Constructors

constructor

  • new ByteWriter(initialCapacity?: number): ByteWriter
  • Creates a new ByteWriter with the optional initial capacity.

    Parameters

    • Default value initialCapacity: number = MIN_CAPACITY

    Returns ByteWriter

Properties

writeInt64BE

writeInt64BE: writeUint64BE = this.writeUint64BE

writeInt64LE

writeInt64LE: writeUint64LE = this.writeUint64LE

writeUint8

writeUint8: writeByte = this.writeByte

Accessors

length

  • get length(): number

Methods

clean

  • clean(): void

finish

  • finish(): Uint8Array

reset

  • reset(): this

write

  • write(arr: Uint8Array): this

writeByte

  • writeByte(byte: number): this

writeFloat32BE

  • writeFloat32BE(value: number): this

writeFloat32LE

  • writeFloat32LE(value: number): this

writeFloat64BE

  • writeFloat64BE(value: number): this

writeFloat64LE

  • writeFloat64LE(value: number): this

writeInt16BE

  • writeInt16BE(value: number): this

writeInt16LE

  • writeInt16LE(value: number): this

writeInt32BE

  • writeInt32BE(value: number): this

writeInt32LE

  • writeInt32LE(value: number): this

writeMany

  • writeMany(arrays: Uint8Array[]): this

writeUint16BE

  • writeUint16BE(value: number): this

writeUint16LE

  • writeUint16LE(value: number): this

writeUint32BE

  • writeUint32BE(value: number): this

writeUint32LE

  • writeUint32LE(value: number): this

writeUint64BE

  • writeUint64BE(value: number): this

writeUint64LE

  • writeUint64LE(value: number): this

writeUintBE

  • writeUintBE(bitLength: number, value: number): this

writeUintLE

  • writeUintLE(bitLength: number, value: number): this

Generated using TypeDoc