Constructors
constructor
- new Data<T>(type, offset, length, nullCount?, buffers?, children?, dictionary?): Data<T>
-
Parameters
-
type: T
-
offset: number
-
length: number
-
Optional
nullCount: number
-
Optional
buffers: Data<T> | Partial<Buffers<T>>
-
-
Optional
dictionary: Vector<any>
Returns Data<T>
Properties
Readonly
TArray
TArray: T["TArray"]
Readonly
TType
TType: T["TType"]
Readonly
TValue
TValue: T["TValue"]
Readonly
length
length: number
Readonly
nullBitmap
nullBitmap: Uint8Array
Readonly
nullable
nullable: boolean
Readonly
offset
offset: number
Readonly
stride
stride: number
Readonly
typeIds
typeIds: T["TArray"]
Readonly
valueOffsets
valueOffsets: Int32Array
Readonly
values
values: T["TArray"]
Accessors
ArrayType
- get ArrayType(): T["ArrayType"]
-
Returns T["ArrayType"]
buffers
- get buffers(): Buffers<T>
-
Returns Buffers<T>
byteLength
- get byteLength(): number
-
Returns number
nullCount
- get nullCount(): number
-
Returns number
typeId
- get typeId(): T["TType"]
-
Returns T["TType"]
Methods
_changeLengthAndBackfillNullBitmap
- _changeLengthAndBackfillNullBitmap(newLength): Data<T>
-
Returns Data<T>
clone
- clone<R>(type?, offset?, length?, nullCount?, buffers?, children?): Data<R>
-
Parameters
-
type: R = ...
-
offset: number = ...
-
length: number = ...
-
nullCount: number = ...
-
buffers: Buffers<R> = ...
-
Returns Data<R>
getValid
- getValid(index): boolean
-
Returns boolean
setValid
- setValid(index, value): boolean
-
Parameters
-
index: number
-
value: boolean
Returns boolean
slice
- slice(offset, length): Data<T>
-
Parameters
-
offset: number
-
length: number
Returns Data<T>
Data structure underlying Vectors. Use the convenience method makeData.