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

Method WriteDestructive

library/cpp/netliba/v6/block_chain.h:222–229  ·  view source on GitHub ↗

will take *data ownership, saves copy

Source from the content-addressed store, hash-verified

220 }
221 // will take *data ownership, saves copy
222 void WriteDestructive(TVector<char>* data) {
223 int n = data ? data->ysize() : 0;
224 Write(n);
225 if (n > 0) {
226 TVector<char>& local = DataVectors.emplace_back(std::move(*data));
227 Chain.AddBlock(&local[0], local.ysize());
228 }
229 }
230 void AttachSharedData(TIntrusivePtr<TSharedMemory> shm) {
231 SharedData = shm;
232 }

Callers 3

DoSendsMethod · 0.45
SendRequestImplMethod · 0.45
DoSendsMethod · 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