Commit cb37f59e authored by Deepali-Garg's avatar Deepali-Garg
Browse files

Sparse+CLuster

parent d814ac45
......@@ -150,19 +150,19 @@ namespace Ph2_HwInterface {
//for ( uint8_t i = vsize; i > 0; i-- )
//fEventData.push_back ( list[list.size() - i] );
event_size = EVENT_HEADER_SIZE_CHAR;
event_size = EVENT_HEADER_SIZE_32;
begin = 0;
end = 0;
for ( auto& it : fSparseMap )
{
uint8_t cFeId = static_cast<uint8_t>( it.first );
uint8_t cNCbc = static_cast<uint8_t>( it.second.size() );
event_size += cNCbc * CBC_EVENT_SIZE_CHAR;
event_size += cNCbc * CBC_EVENT_SIZE_32;
for ( auto& jt : it.second )
{
uint8_t cCbcId = static_cast<uint8_t>( jt.first );
begin = EVENT_HEADER_SIZE_CHAR + cFeId * CBC_EVENT_SIZE_CHAR * cNCbc + cCbcId * CBC_EVENT_SIZE_CHAR;
end = begin + CBC_EVENT_SIZE_CHAR;
begin = EVENT_HEADER_SIZE_32 + cFeId * CBC_EVENT_SIZE_32 * cNCbc + cCbcId * CBC_EVENT_SIZE_32;
end = begin + CBC_EVENT_SIZE_32;
for( uint32_t position = begin; position <= end; position ++)
{ uint32_t cByteP = position / 8;
uint32_t cBitP = position % 8;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment