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

Method ExpandBitSize

util/generic/bitmap.h:192–194  ·  view source on GitHub ↗

Returns true if the resulting storage capacity is enough to fit the requested size

Source from the content-addressed store, hash-verified

190
191 // Returns true if the resulting storage capacity is enough to fit the requested size
192 Y_FORCE_INLINE static constexpr bool ExpandBitSize(const size_t bitSize) noexcept {
193 return bitSize <= BitCount;
194 }
195
196 Y_FORCE_INLINE void Sanitize() {
197 Data[Size - 1] &= TSanitizeMask<TChunk, BitCount % (8 * sizeof(TChunk))>::Value;

Callers 3

operator[]Method · 0.45
TBitMapOpsClass · 0.45
ReserveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected