MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / PrepareForWriting

Method PrepareForWriting

lib/mdflib/mdflib/src/ca4block.cpp:699–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699void 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

Callers

nothing calls this directly

Calls 1

BitCountMethod · 0.45

Tested by

no test coverage detected