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

Function getPadding

CesiumGltfWriter/src/GltfWriter.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22[[nodiscard]] size_t
23getPadding(size_t byteCount, size_t byteAlignment) noexcept {
24 CESIUM_ASSERT(byteAlignment > 0);
25 size_t remainder = byteCount % byteAlignment;
26 size_t padding = remainder == 0 ? 0 : byteAlignment - remainder;
27 return padding;
28}
29
30void writeGlbBuffer(
31 GltfWriterResult& result,

Callers 1

writeGlbBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected