tools/utils/generators/index_table.cpp
/* ------ Index search index in the table ------ */
Index search index in the table
Index search index in the table
uint32_t IndexTable::findHeaderBlockIndex(uint32_t miniBlockNumber)
{
    if (miniBlockNumber >= m_miniBlockCount) throw std::invalid_argument("No such mini block in the table");
    uint32_t blockNumber = 0u;
    blockNumber = getBlockNumber(miniBlockNumber);
    return blockNumber * (m_miniBlocksPerBlock + 2u);
}
uint32_t IndexTable :: findHeaderBlockIndex ( uint32_t miniBlockNumber ) { if ( miniBlockNumber >= m_miniBlockCount ) throw std :: invalid_argument ( " " ) ; uint32_t blockNumber = 0u ; blockNumber = getBlockNumber ( miniBlockNumber ) ; return blockNumber * ( m_miniBlocksPerBlock + 2u ) ; }
Index search index in the table
Index search index in the table
// █|▒|▒|▒|▒|◙|█|▒|▒|▒|▒|◙|█|▒|▒|▒|◙ - indices[0:16] // █ - block header // ▒ - mini block // ◙ - EOB // -> current_block_header_index = previous mini block count + previous count of EOB + HEADER_BLOCK