C# Class Bigio.BigArray.Support_Classes.ArrayMap.BlockInfo

BlockInfo is object with iformation about block and its location.
Mostra file Open project: 80LevelElf/Bigio

Public Properties

Property Type Description
CommonStartIndex int
Count int
IndexOfBlock int

Public Methods

Method Description
BlockInfo ( int indexOfBlock, int commonStartIndex, int count )

Create new instance of BlockInfo with specified data.

Compare ( int index ) : int

Defines location specified index relative the block.

Equals ( BlockInfo other ) : bool

Check equal of current BlockInfo and other BlockInfo.

Method Details

BlockInfo() public method

Create new instance of BlockInfo with specified data.
public BlockInfo ( int indexOfBlock, int commonStartIndex, int count )
indexOfBlock int Index of block inside block collection.
commonStartIndex int Common start index of current block.
count int Count of elements inside current block.

Compare() public method

Defines location specified index relative the block.
public Compare ( int index ) : int
index int Specified index to define relative location.
return int

Equals() public method

Check equal of current BlockInfo and other BlockInfo.
public Equals ( BlockInfo other ) : bool
other BlockInfo Other to check.
return bool

Property Details

CommonStartIndex public_oe property

Common start index of current block. For example: if there is 2 blocks(both of 100 elements), then CommonStartIndex of first block is 0 and CommonStartIndex of second block is 100(because it starts by 100 element).
public int CommonStartIndex
return int

Count public_oe property

Count of elements inside current block.
public int Count
return int

IndexOfBlock public_oe property

Index of block inside block collection.
public int IndexOfBlock
return int