| 697 | } |
| 698 | |
| 699 | void Ca4Block::PrepareForWriting() { |
| 700 | if (parent_channel_ != nullptr) { |
| 701 | uint32_t size_of_value = parent_channel_->BitCount() / 8; |
| 702 | if ((parent_channel_->BitCount() % 8) > 0) { |
| 703 | ++size_of_value; |
| 704 | } |
| 705 | byte_offset_base_ = static_cast<int32_t>(size_of_value); |
| 706 | |
| 707 | invalid_bit_pos_base_ = 0; |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | } // namespace mdf::detail |