visualization-tools

Home > @visualization-tools/core > IIndexedDataConnector

IIndexedDataConnector interface

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> 

Properties

Property Type Description
offsets TOffsets  

Methods

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)