| 502 | } |
| 503 | |
| 504 | uint64_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 | |
| 519 | bool DsoSnapshot::get_max_min_value(uint8_t &maxv, uint8_t &minv, int chan_index) |
| 520 | { |
no outgoing calls
no test coverage detected