MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetValue

Method GetValue

src/dbwrapper.h:158–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 template<typename V> bool GetValue(V& value) {
159 leveldb::Slice slValue = piter->value();
160 try {
161 CDataStream ssValue{MakeByteSpan(slValue), SER_DISK, CLIENT_VERSION};
162 ssValue.Xor(dbwrapper_private::GetObfuscateKey(parent));
163 ssValue >> value;
164 } catch (const std::exception&) {
165 return false;
166 }
167 return true;
168 }
169
170 unsigned int GetValueSize() {
171 return piter->value().size();

Callers

nothing calls this directly

Calls 3

MakeByteSpanFunction · 0.85
XorMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected