MCPcopy Create free account
hub / github.com/catboost/catboost / AlignUp

Method AlignUp

util/generic/buffer.h:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 inline void AlignUp(size_t align, char fillChar = '\0') {
180 size_t diff = ::AlignUp(Pos_, align) - Pos_;
181 while (diff-- > 0) {
182 Append(fillChar);
183 }
184 }
185
186 inline char* data() noexcept {
187 return Data();

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 2

AlignUpFunction · 0.50
AppendFunction · 0.50

Tested by

no test coverage detected