MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_present()

void MayaFlux::Kakshya::CompositeArray::set_present ( size_t  index,
size_t  field_index,
bool  present 
)
privatenoexcept

Definition at line 140 of file Composite.cpp.

141{
142 auto& rows = std::get<std::vector<uint8_t>>(m_rows);
143 const size_t byte_index = index * m_layout.stride_bytes() + field_index / 8;
144 const auto mask = static_cast<uint8_t>(1U << (field_index % 8));
145
146 if (present) {
147 rows[byte_index] |= mask;
148 } else {
149 rows[byte_index] &= static_cast<uint8_t>(~mask);
150 }
151}
uint32_t rows
uint32_t index
Definition VKDevice.cpp:122
size_t stride_bytes() const noexcept
Bytes per packed element after finalization.
Definition Composite.hpp:86

References index, and rows.

Referenced by clear(), set_blob(), set_integer(), set_null(), set_real(), and set_text().

+ Here is the caller graph for this function: