MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / countOnesInBuffer

Function countOnesInBuffer

CesiumGeometry/src/Availability.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28uint8_t countOnesInByte(uint8_t _byte) { return ones_in_byte[_byte]; }
29
30uint32_t countOnesInBuffer(std::span<const std::byte> buffer) {
31 uint32_t count = 0;
32 for (const std::byte& byte : buffer) {
33 count += countOnesInByte((uint8_t)byte);
34 }
35 return count;
36}
37} // namespace AvailabilityUtilities
38
39AvailabilityNode::AvailabilityNode() noexcept

Callers 10

computeAvailabilityMethod · 0.85
addSubtreeMethod · 0.85
addNodeMethod · 0.85
findChildNodeIndexMethod · 0.85
computeAvailabilityMethod · 0.85
addSubtreeMethod · 0.85
addNodeMethod · 0.85
findChildNodeIndexMethod · 0.85
setLoadedSubtreeMethod · 0.85

Calls 1

countOnesInByteFunction · 0.85

Tested by

no test coverage detected