MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_block_size

Method get_block_size

DSView/pv/data/dsosnapshot.cpp:504–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504uint64_t DsoSnapshot::get_block_size(int block_index)
505{
506 assert(block_index < get_block_num());
507
508 if (block_index < get_block_num() - 1) {
509 return LeafBlockSamples;
510 } else {
511 const uint64_t size = _sample_count * get_unit_bytes() * get_channel_num();
512 if (size % LeafBlockSamples == 0)
513 return LeafBlockSamples;
514 else
515 return size % LeafBlockSamples;
516 }
517}
518
519bool DsoSnapshot::get_max_min_value(uint8_t &maxv, uint8_t &minv, int chan_index)
520{

Callers 3

save_logicMethod · 0.45
save_analogMethod · 0.45
export_execMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected