|
| RLP () |
| Construct a null node. More...
|
|
| RLP (bytesConstRef _d, Strictness _s=VeryStrict) |
| Construct a node of value given in the bytes. More...
|
|
| RLP (bytes const &_d, Strictness _s=VeryStrict) |
| Construct a node of value given in the bytes. More...
|
|
| RLP (byte const *_b, unsigned _s, Strictness _st=VeryStrict) |
| Construct a node to read RLP data in the bytes given. More...
|
|
| RLP (std::string const &_s, Strictness _st=VeryStrict) |
| Construct a node to read RLP data in the string. More...
|
|
bytesConstRef | data () const |
| The bare data of the RLP. More...
|
|
| operator bool () const |
|
bool | isNull () const |
| No value. More...
|
|
bool | isEmpty () const |
| Contains a zero-length string or zero-length list. More...
|
|
bool | isData () const |
| String value. More...
|
|
bool | isList () const |
| List value. More...
|
|
bool | isInt () const |
| Integer value. Must not have a leading zero. More...
|
|
size_t | itemCount () const |
|
size_t | itemCountStrict () const |
|
size_t | size () const |
|
size_t | sizeStrict () const |
|
bool | operator== (char const *_s) const |
| Equality operators; does best-effort conversion and checks for equality. More...
|
|
bool | operator!= (char const *_s) const |
|
bool | operator== (std::string const &_s) const |
|
bool | operator!= (std::string const &_s) const |
|
template<unsigned _N> |
bool | operator== (FixedHash< _N > const &_h) const |
|
template<unsigned _N> |
bool | operator!= (FixedHash< _N > const &_s) const |
|
bool | operator== (unsigned const &_i) const |
|
bool | operator!= (unsigned const &_i) const |
|
bool | operator== (u256 const &_i) const |
|
bool | operator!= (u256 const &_i) const |
|
bool | operator== (bigint const &_i) const |
|
bool | operator!= (bigint const &_i) const |
|
RLP | operator[] (size_t _i) const |
| Subscript operator. More...
|
|
iterator | begin () const |
| Iterator into beginning of sub-item list (valid only if we are a list). More...
|
|
iterator | end () const |
| Iterator into end of sub-item list (valid only if we are a list). More...
|
|
template<class T > |
T | convert (int _flags) const |
|
| operator std::string () const |
| Best-effort conversion operators. More...
|
|
| operator bytes () const |
|
| operator RLPs () const |
|
| operator uint8_t () const |
|
| operator uint16_t () const |
|
| operator uint32_t () const |
|
| operator uint64_t () const |
|
| operator u160 () const |
|
| operator u256 () const |
|
| operator bigint () const |
|
template<unsigned N> |
| operator FixedHash< N > () const |
|
template<class T , class U > |
| operator std::pair< T, U > () const |
|
template<class T > |
| operator std::vector< T > () const |
|
template<class T > |
| operator std::set< T > () const |
|
template<class T , size_t N> |
| operator std::array< T, N > () const |
|
bytes | toBytes (int _flags=LaissezFaire) const |
| Converts to bytearray. More...
|
|
bytesConstRef | toBytesConstRef (int _flags=LaissezFaire) const |
| Converts to bytearray. More...
|
|
std::string | toString (int _flags=LaissezFaire) const |
| Converts to string. More...
|
|
std::string | toStringStrict () const |
| Converts to string. More...
|
|
template<class T > |
std::vector< T > | toVector (int _flags=LaissezFaire) const |
|
template<class T > |
std::set< T > | toSet (int _flags=LaissezFaire) const |
|
template<class T > |
std::unordered_set< T > | toUnorderedSet (int _flags=LaissezFaire) const |
|
template<class T , class U > |
std::pair< T, U > | toPair (int _flags=Strict) const |
|
template<class T , size_t N> |
std::array< T, N > | toArray (int _flags=LaissezFaire) const |
|
template<class _T = unsigned> |
_T | toInt (int _flags=Strict) const |
| Converts to int of type given; if isString(), decodes as big-endian bytestream. More...
|
|
template<class _N > |
_N | toHash (int _flags=Strict) const |
|
RLPs | toList (int _flags=Strict) const |
| Converts to RLPs collection object. Useful if you need random access to sub items or will iterate over multiple times. More...
|
|
bytesConstRef | payload () const |
|
size_t | actualSize () const |
|
Class for interpreting Recursive Linear-Prefix Data.
Gav Wood, 2013
Class for reading byte arrays of data in RLP format.
Definition at line 64 of file RLP.h.