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

Method Swap

util/generic/bitmap.h:243–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 }
242
243 Y_FORCE_INLINE void Swap(TDynamicStorage<TChunkType>& st) {
244 DoSwap(Size, st.Size);
245 DoSwap(StackData, st.StackData);
246 DoSwap(ArrayData, st.ArrayData);
247 Data = 1 == Size ? &StackData : ArrayData.Get();
248 st.Data = 1 == st.Size ? &st.StackData : st.ArrayData.Get();
249 }
250
251 Y_FORCE_INLINE size_t GetBitCapacity() const {
252 return Size * 8 * sizeof(TChunk);

Callers

nothing calls this directly

Calls 2

DoSwapFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected