| 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(); |
nothing calls this directly
no test coverage detected