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

Method AddBlock

library/cpp/netliba/v6/block_chain.h:181–184  ·  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

Source from the content-addressed store, hash-verified

179 // data - pointer to data start within buf
180 // sz - size of useful data
181 void AddBlock(char* buf, const char* data, int sz) {
182 Buf.push_back(buf);
183 Chain.AddBlock(data, sz);
184 }
185 void AddBlock(TThrRefBase* buf, const char* data, int sz) {
186 AttachedStorage.push_back(buf);
187 Chain.AddBlock(data, sz);

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
AddBlockMethod · 0.45

Tested by

no test coverage detected