| 35 | } |
| 36 | |
| 37 | void Dt4Block::UpdateDataSize(std::streambuf& buffer) { |
| 38 | int64_t last_file_position = GetLastFilePosition(buffer); |
| 39 | const auto data_size = last_file_position - data_position_; |
| 40 | if (data_size > 0) { |
| 41 | block_length_ = 24 + static_cast<uint64_t>(data_size); |
| 42 | } |
| 43 | MDF_TRACE() << "Updated the last DT block data size. Size: " << data_size; |
| 44 | } |
| 45 | |
| 46 | uint64_t Dt4Block::Write(std::streambuf& buffer) { |
| 47 | const auto update = FilePosition() > 0; |
no test coverage detected