| 133 | } |
| 134 | |
| 135 | size_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 | |
| 145 | void print(const size_t& pos, const size_t& expectedPos, |
| 146 | size_t& prevPos, bool& readPosOk, std::string type) |
no outgoing calls
no test coverage detected