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

Method TBlob

library/cpp/yt/memory/blob.cpp:16–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static constexpr double BlobCapacityMultiplier = 1.5;
15
16TBlob::TBlob(
17 TRefCountedTypeCookie tagCookie,
18 size_t size,
19 bool initializeStorage,
20 bool pageAligned)
21 : PageAligned_(pageAligned)
22{
23 SetTagCookie(tagCookie);
24 if (size == 0) {
25 Reset();
26 } else {
27 Allocate(std::max(size, InitialBlobCapacity));
28 Size_ = size;
29 if (initializeStorage) {
30 ::memset(Begin_, 0, Size_);
31 }
32 }
33}
34
35TBlob::TBlob(
36 TRefCountedTypeCookie tagCookie,

Callers

nothing calls this directly

Calls 5

ResetFunction · 0.50
AllocateFunction · 0.50
maxFunction · 0.50
AppendFunction · 0.50
ResetMethod · 0.45

Tested by

no test coverage detected