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

Method WriteNoCopy

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

/ caller guarantees that data will persist all *this lifetime / int this case so we don`t have to copy data to locally held buffer template void WriteNoCopy(const T *data) { Chain.AddBlock(data, sizeof(T)); }

Source from the content-addressed store, hash-verified

224 // Chain.AddBlock(data, sizeof(T));
225 //}
226 void WriteNoCopy(const char* buf, int sz) {
227 Write(sz);
228 Chain.AddBlock(buf, sz);
229 }
230 // write some array like TVector<>
231 //template<class T>
232 //void WriteArr(const T &sz)

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.70
AddBlockMethod · 0.45

Tested by

no test coverage detected