The parent data source for this chunk
The start of this chunk, in bytes, within the parent data source
The end of this chunk, in bytes, within the parent data source
Variable to store the loaded data for this chunk.
The end of the data, in bytes, this chunk represents within its parent data source.
The parent data source this chunk belongs to.
The start of the data, in bytes, this chunk represents within its parent data source.
When this chunk is loaded, returns the buffer containing the data for this chunk, null otherwise.
The total byte length this chunk represents.
NOTE: This value can change after a chunk is loaded for the first time if the chunk belongs to a remote data source, if the total size is unknown, the value will be -1.
Is this chunk loaded in memory.
Loads this chunk into memory.
NOTE: If this chunk belongs to a remote DataSource, this function waits until the data for this chunk has been transferred from the remote and into memory. Also, if the final size for the remote DataSource is unknown, the byteLength of this chunk could change after it finishes loading.
Loads the data source into an ArrayBuffer. Optionally a start and end can be specified to load a part of the
data.
The offset at which the data will start loading
The offset at which the data will stop loading
Slices this chunk and returns a new data chunk pointing at the data within the specified boundaries.
Pointer to the start of the data in bytes
Pointer to the end of the data in bytes
Unloads this chunk from memory.
Generated using TypeDoc
DataSource that represents a section (chunk) of a larger data source (parent). Useful when chunking a data source to parallelize processing.