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

Method Write

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

Source from the content-addressed store, hash-verified

208 }
209 //
210 void Write(const void* data, int sz) {
211 char* buf = Alloc(sz);
212 memcpy(buf, data, sz);
213 Chain.AddBlock(buf, sz);
214 }
215 template <class T>
216 void Write(const T& data) {
217 Write(&data, sizeof(T));

Callers 7

ParsePacketMethod · 0.45
SendPingsIfNeededMethod · 0.45
DoSendCancelMethod · 0.45
DoSendsMethod · 0.45
SendRequestImplMethod · 0.45
GetDebugInfoFunction · 0.45

Calls 3

WriteFunction · 0.70
AllocFunction · 0.50
AddBlockMethod · 0.45

Tested by

no test coverage detected