MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / blockIdAt

Method blockIdAt

cpp/shard/BlockServicesCacheDB.cpp:104–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 uint64_t blockIdAt(uint64_t ix) const {
105 ALWAYS_ASSERT(oldVersion());
106 ALWAYS_ASSERT(ix < length());
107 uint64_t v;
108 memcpy(&v, _data + MIN_SIZE_V0 + (ix*sizeof(uint64_t)), sizeof(uint64_t));
109 return v;
110 }
111
112 BlockServiceInfoShortBody blockServiceInfoAt(uint64_t ix) const {
113 ALWAYS_ASSERT(!oldVersion());

Callers 1

BlockServicesCacheDBMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected