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

Function skip

tests/DCPS/Serializer/SerializerTest.cpp:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135size_t skip(size_t pos, size_t typeSize, size_t maxAlign)
136{
137 if (maxAlign == 0) {
138 return 0;
139 }
140 #undef min
141 size_t align = std::min(typeSize, maxAlign);
142 return (align - (pos % align)) % align;
143}
144
145void print(const size_t& pos, const size_t& expectedPos,
146 size_t& prevPos, bool& readPosOk, std::string type)

Callers 8

read_parameter_idMethod · 0.85
skip_memberMethod · 0.85
skip_sequence_memberMethod · 0.85
skip_array_memberMethod · 0.85
skip_map_memberMethod · 0.85
skip_allMethod · 0.85
extractionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected