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

Method WriteDestructive

library/cpp/netliba/v12/block_chain.h:246–253  ·  view source on GitHub ↗

will take *data ownership, saves copy

Source from the content-addressed store, hash-verified

244 }
245 // will take *data ownership, saves copy
246 void WriteDestructive(TDataVector* data) {
247 int n = data ? data->ysize() : 0;
248 Write(n);
249 if (n > 0) {
250 auto& local = DataVectors.emplace_back(std::move(*data));
251 Chain.AddBlock(&local[0], local.ysize());
252 }
253 }
254 void AttachSharedData(TIntrusivePtr<TPosixSharedMemory> shm) {
255 SharedData = shm;
256 }

Callers 2

DoSendsMethod · 0.45
SendRequestImplMethod · 0.45

Calls 5

WriteFunction · 0.70
moveFunction · 0.50
ysizeMethod · 0.45
emplace_backMethod · 0.45
AddBlockMethod · 0.45

Tested by

no test coverage detected