MCPcopy Create free account
hub / github.com/citp/BlockSci / serialize

Method serialize

tools/parser/preproccessed_block.cpp:237–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236 template <typename T>
237 void serialize(T t) {
238 SHA256_Update(&sha256, reinterpret_cast<const char *>(&t), sizeof(t));
239 }
240
241 void serialize(const unsigned char *pos, size_t size) {
242 SHA256_Update(&sha256, pos, size);

Callers 1

getHashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected