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

Method Copy

library/cpp/netliba/v12/ib_memstream.h:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 Copy(x);
25 }
26 void Copy(const TBlock& x) {
27 if (x.BufSize > 0) {
28 Mem = GetIBMemPool()->Alloc(x.BufSize);
29 memcpy(Mem->GetData(), x.Mem->GetData(), x.DataSize);
30 StartOffset = x.StartOffset;
31 BufSize = x.BufSize;
32 DataSize = x.DataSize;
33 } else {
34 Mem = nullptr;
35 StartOffset = 0;
36 BufSize = 0;
37 DataSize = 0;
38 }
39 }
40 };
41
42 TIntrusivePtr<TIBMemPool> MemPool;

Callers

nothing calls this directly

Calls 3

GetIBMemPoolFunction · 0.70
AllocMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected