Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Namespaces | Functions
TrieCommon.h File Reference
#include "Common.h"
#include "RLP.h"
Include dependency graph for TrieCommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dev::NibbleSlice
 Nibble-based view on a bytesConstRef. More...
 

Namespaces

 dev
 Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by RenĂ© Nyffenegger.
 

Functions

byte dev::nibble (bytesConstRef _data, unsigned _i)
 
unsigned dev::sharedNibbles (bytesConstRef _first, unsigned _beginFirst, unsigned _endFirst, bytesConstRef _second, unsigned _beginSecond, unsigned _endSecond)
 Interprets _first and _second as vectors of nibbles and returns the length of the longest common prefix of _first[_beginFirst..._endFirst] and _second[_beginSecond..._endSecond]. More...
 
std::ostream & dev::operator<< (std::ostream &_out, NibbleSlice const &_m)
 
bool dev::isLeaf (RLP const &_twoItem)
 
NibbleSlice dev::keyOf (bytesConstRef _hpe)
 
NibbleSlice dev::keyOf (RLP const &_twoItem)
 
byte dev::uniqueInUse (RLP const &_orig, byte except)
 
std::string dev::hexPrefixEncode (bytes const &_hexVector, bool _leaf, int _begin, int _end)
 
std::string dev::hexPrefixEncode (bytesConstRef _data, bool _leaf, int _beginNibble, int _endNibble, unsigned _offset)
 
std::string dev::hexPrefixEncode (bytesConstRef _d1, unsigned _o1, bytesConstRef _d2, unsigned _o2, bool _leaf)
 
std::string dev::hexPrefixEncode (NibbleSlice _s, bool _leaf, int _begin=0, int _end=-1)
 
std::string dev::hexPrefixEncode (NibbleSlice _s1, NibbleSlice _s2, bool _leaf)
 

Detailed Description

Author
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014

Definition in file TrieCommon.h.