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

Method AddBlock

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

buf - pointer to buffer which will be freed with FreeBuf() data - pointer to data start within buf sz - size of useful data void AddBlock(char *buf, const char *data, int sz) { Buf.push_back(buf); Chain.AddBlock(data, sz); }

Source from the content-addressed store, hash-verified

199 // Chain.AddBlock(data, sz);
200 //}
201 void AddBlock(TUdpRecvPacket* buf, const char* data, int sz) {
202 PacketsStorage.push_back(buf);
203 Chain.AddBlock(data, sz);
204 }
205 void AddBlock(TThrRefBase* buf, const char* data, int sz) {
206 AttachedStorage.push_back(buf);
207 Chain.AddBlock(data, sz);

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
AddBlockMethod · 0.45

Tested by

no test coverage detected