Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TerrainBuffer

Hierarchy

  • TerrainBuffer

Index

Properties

Buffer

Buffer: Uint8Array = new Uint8Array(2048)

Length

Length: number = 0

Private _dview

_dview: DataView = new DataView(this.Buffer.buffer)

Private _seekPos

_seekPos: number = 0

Methods

Assign

  • Assign(buff: Uint8Array): void
  • Parameters

    • buff: Uint8Array

    Returns void

ReadFloat

  • ReadFloat(): number
  • Returns number

ReadFloatArray

  • ReadFloatArray(value: number[]): number[]
  • Parameters

    • value: number[]

    Returns number[]

ReadInt

  • ReadInt(): number
  • Returns number

ReadInt16

  • ReadInt16(): number
  • Returns number

ReadInt8

  • ReadInt8(): number
  • Returns number

ReadIntArray

  • ReadIntArray(value: number[]): number[]
  • Parameters

    • value: number[]

    Returns number[]

ReadString

  • ReadString(): string
  • Returns string

Reserve

  • Reserve(size: number): void
  • Parameters

    • size: number

    Returns void

WriteFloat

  • WriteFloat(value: number): void
  • Parameters

    • value: number

    Returns void

WriteFloatArray

  • WriteFloatArray(value: number[]): void
  • Parameters

    • value: number[]

    Returns void

WriteInt16

  • WriteInt16(value: number): void
  • Parameters

    • value: number

    Returns void

WriteInt32

  • WriteInt32(value: number): void
  • Parameters

    • value: number

    Returns void

WriteInt8

  • WriteInt8(value: number): void
  • Parameters

    • value: number

    Returns void

WriteIntArray

  • WriteIntArray(value: number[]): void
  • Parameters

    • value: number[]

    Returns void

WriteString

  • WriteString(value: string): void
  • Parameters

    • value: string

    Returns void

Generated using TypeDoc