Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseData<T>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new BaseData(type: T, length: number, offset?: undefined | number, nullCount?: undefined | number): BaseData
  • Parameters

    • type: T
    • length: number
    • Optional offset: undefined | number
    • Optional nullCount: undefined | number

    Returns BaseData

Properties

Protected Optional 0

0: Int32Array

Protected Optional 1

1: undefined | T["TArray"]

Protected Optional 2

2: Uint8Array

Protected Optional 3

3: Int8Array

Protected _nullCount

_nullCount: number | kUnknownNullCount

childData

childData: Data<any>[]

length

length: number

offset

offset: number

type

type: T

Accessors

nullBitmap

  • get nullBitmap(): undefined | Uint8Array
  • Returns undefined | Uint8Array

nullCount

  • get nullCount(): number

typeId

  • get typeId(): any

Methods

clone

  • clone<R>(type: R, length?: number, offset?: number, nullCount?: number): BaseData<R>
  • Type parameters

    • R: T

    Parameters

    • type: R
    • Default value length: number = this.length
    • Default value offset: number = this.offset
    • Default value nullCount: number = this._nullCount

    Returns BaseData<R>

slice

  • slice(offset: number, length: number): this
  • Parameters

    • offset: number
    • length: number

    Returns this

Protected sliceData

  • sliceData(data: T["TArray"] & TypedArray, offset: number, length: number): any
  • Parameters

    • data: T["TArray"] & TypedArray
    • offset: number
    • length: number

    Returns any

Protected sliceInternal

  • sliceInternal(clone: this, offset: number, length: number): this
  • Parameters

    • clone: this
    • offset: number
    • length: number

    Returns this

Protected sliceOffsets

  • sliceOffsets(valueOffsets: Int32Array, offset: number, length: number): Int32Array
  • Parameters

    • valueOffsets: Int32Array
    • offset: number
    • length: number

    Returns Int32Array

Generated using TypeDoc