Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnionData<T>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new UnionData(type: T, length: number, nullBitmap: Uint8Array | null | undefined, typeIds: Iterable<number>, childData: Data<any>[], offset?: undefined | number, nullCount?: undefined | number): UnionData
  • Parameters

    • type: T
    • length: number
    • nullBitmap: Uint8Array | null | undefined
    • typeIds: Iterable<number>
    • childData: Data<any>[]
    • Optional offset: undefined | number
    • Optional nullCount: undefined | number

    Returns UnionData

Properties

Protected Optional 0

0: Int32Array

Protected Optional 1

1: undefined | T["TArray"]

2

2: Uint8Array

3

3: T["TArray"]

Protected _nullCount

_nullCount: number | kUnknownNullCount

childData

childData: Data<any>[]

length

length: number

offset

offset: number

type

type: T

Accessors

nullBitmap

  • get nullBitmap(): undefined | Uint8Array

nullCount

  • get nullCount(): number

typeId

  • get typeId(): any

typeIds

  • get typeIds(): T["TArray"]

Methods

clone

  • clone<R>(type: R, length?: number, offset?: number, nullCount?: number): UnionData<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 UnionData<R>

slice

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

Protected sliceData

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

Protected sliceInternal

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

Protected sliceOffsets

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

Generated using TypeDoc