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

Method Allocate

library/cpp/streams/lzma/lzma.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21 public:
22 inline void* Allocate(size_t len) {
23 if (len > 1024 * 1024 * 1024) {
24 return nullptr;
25 }
26
27 TAllocation* ret = new (len) TAllocation;
28
29 Allocs_.PushBack(ret);
30
31 return ret->AdditionalData();
32 }
33
34 inline void Deallocate(void* ptr) noexcept {
35 if (ptr) {

Callers 1

AllocFuncMethod · 0.45

Calls 2

AdditionalDataMethod · 0.80
PushBackMethod · 0.45

Tested by

no test coverage detected