Data structure underlying Vectors. Use the convenience method makeData.

Type Parameters

Constructors

  • Type Parameters

    Parameters

    • type: T
    • offset: number
    • length: number
    • OptionalnullCount: number
    • Optionalbuffers: Data<T> | Partial<Buffers<T>>
    • children: Data<DataType<Type, any>>[] = []
    • Optionaldictionary: 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
offset: number
stride: number
type: T
typeIds: T["TArray"]
valueOffsets: T["TOffsetArray"]
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 nullable(): boolean
  • Returns boolean

  • 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>