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

Method Write

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

Source from the content-addressed store, hash-verified

188 }
189 //
190 void Write(const void* data, int sz) {
191 char* buf = Alloc(sz);
192 memcpy(buf, data, sz);
193 Chain.AddBlock(buf, sz);
194 }
195 template <class T>
196 void Write(const T& data) {
197 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