Option name | Type | Description |
---|---|---|
blockValue | Object | the value of the block |
blockPosition | Object | the position/index of the block |
A basic uncompressed data block
function BasicBlock(blockValue, blockPosition){
var self = this;
Block.call(this);
this.value = blockValue;
this.position = blockPosition;
Get the next value in the block.
As the basic block is uncompressed only one value is stored
self.getNext = function(){ return { value: this.value, position: this.position }; };
Get the size of the block (number of elements).
As the basic block is uncompressed the size is always 1
self.getSize = function(){ return 1; };