Class Data<T>

Data structure underlying Vectors. Use the convenience method makeData.

Type Parameters

Hierarchy

  • Data

Constructors

  • Type Parameters

    Parameters

    • type: T
    • offset: number
    • length: number
    • Optional nullCount: number
    • Optional buffers: Data<T> | Partial<Buffers<T>>
    • children: Data<DataType<Type, any>>[] = []
    • Optional dictionary: Vector<any>

    Returns Data<T>

Properties

TArray: T["TArray"]
TType: T["TType"]
TValue: T["TValue"]
children: Data<DataType<Type, any>>[]
dictionary?: Vector<any>

The dictionary for this Vector, if any. Only used for Dictionary type.

length: number
nullBitmap: Uint8Array
nullable: boolean
offset: number
stride: number
type: T
typeIds: T["TArray"]
valueOffsets: Int32Array
values: T["TArray"]

Accessors

  • get ArrayType(): T["ArrayType"]
  • Returns T["ArrayType"]

  • get buffers(): Buffers<T>
  • Returns Buffers<T>

  • get byteLength(): number
  • Returns number

  • get nullCount(): number
  • Returns number

  • get typeId(): T["TType"]
  • Returns T["TType"]

Methods

  • Parameters

    • newLength: number

    Returns Data<T>

  • Type Parameters

    Parameters

    • type: R = ...
    • offset: number = ...
    • length: number = ...
    • nullCount: number = ...
    • buffers: Buffers<R> = ...
    • children: Data<DataType<Type, any>>[] = ...

    Returns Data<R>

  • Parameters

    • index: number

    Returns boolean

  • Parameters

    • index: number
    • value: boolean

    Returns boolean

  • Parameters

    • offset: number
    • length: number

    Returns Data<T>

Generated using TypeDoc