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

Method GetBlocks

library/cpp/netliba/v6/ib_memstream.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 void TIBMemStream::GetBlocks(TVector<TBlockDescr>* res) const {
86 int blockCount = Blocks.ysize();
87 res->resize(blockCount);
88 for (int i = 0; i < blockCount; ++i) {
89 const TBlock& blk = Blocks[i];
90 TBlockDescr& dst = (*res)[i];
91 dst.Addr = blk.Mem->GetAddr();
92 dst.BufSize = blk.BufSize;
93 dst.DataSize = blk.DataSize;
94 TMemoryRegion* mem = blk.Mem->GetMemRegion();
95 dst.LocalKey = mem->GetLKey();
96 dst.RemoteKey = mem->GetRKey();
97 }
98 }
99
100 void TIBMemStream::CreateBlocks(const TVector<TBlockSizes>& arr) {
101 int blockCount = arr.ysize();

Callers

nothing calls this directly

Calls 6

ysizeMethod · 0.45
resizeMethod · 0.45
GetAddrMethod · 0.45
GetMemRegionMethod · 0.45
GetLKeyMethod · 0.45
GetRKeyMethod · 0.45

Tested by

no test coverage detected