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

Method OnBufferExhausted

util/stream/buffered.cpp:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 ~TAdaptiveImpl() override = default;
327
328 void OnBufferExhausted() final {
329 const size_t c = ((size_t)Step) << Min<size_t>(++N_ / 32, 10);
330
331 if (c > B_.Capacity()) {
332 TBuffer(c).Swap(B_);
333 }
334 }
335
336 void* Buf() const noexcept override {
337 return (void*)B_.Data();

Callers

nothing calls this directly

Calls 3

TBufferClass · 0.70
CapacityMethod · 0.45
SwapMethod · 0.45

Tested by

no test coverage detected