MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / roundUp

Function roundUp

dds/DCPS/security/CryptoBuiltInImpl.cpp:1353–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1351 }
1352
1353 unsigned int roundUp(unsigned int length, unsigned int alignment)
1354 {
1355 const unsigned int offset = length % alignment;
1356 return length + (offset ? alignment - offset : 0);
1357 }
1358
1359 const int SEQLEN_SZ = 4;
1360

Callers 3

setOctetsToNextHeaderFunction · 0.85
encode_submessageMethod · 0.85
encode_rtps_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected