Home > @visualization-tools/core > IIndexedDataConnector
Generic descriptor of indexable data, good for parallel or interleaved buffers. Makes the assumption that each index has one or more associated values, accessed via offsets.
Signature:
export interface IIndexedDataConnector<TOffsets>
| Property | Type | Description |
|---|---|---|
| offsets | TOffsets |
| Method | Description |
|---|---|
| getBlockByteSize() | |
| getBlockElementCount() | The number of elements in a block. May not be adjusted after creation. |
| getEnd() | Start index + length. Useful for iteration. |
| getLength() | The current length. |
| getLoggableValue() | |
| getMaximumLength() | The maximum number of blocks that can be used. May not be adjusted after creation. |
| getStart() | |
| getValue(index, offset) | |
| setLength(length) | |
| setStart(index) | |
| setValue(index, offset, value) |