Class for writing to an RLP bytestream.
More...
#include <RLP.h>
|
| | RLPStream () |
| | Initializes empty RLPStream. More...
|
| |
| | RLPStream (size_t _listItems) |
| | Initializes the RLPStream as a list of _listItems items. More...
|
| |
| | ~RLPStream () |
| |
| RLPStream & | append (unsigned _s) |
| | Append given datum to the byte stream. More...
|
| |
| RLPStream & | append (u160 _s) |
| |
| RLPStream & | append (u256 _s) |
| |
| RLPStream & | append (bigint _s) |
| |
| RLPStream & | append (bytesConstRef _s, bool _compact=false) |
| |
| RLPStream & | append (bytes const &_s) |
| |
| RLPStream & | append (std::string const &_s) |
| |
| RLPStream & | append (char const *_s) |
| |
| template<unsigned N> |
| RLPStream & | append (FixedHash< N > _s, bool _compact=false, bool _allOrNothing=false) |
| |
| RLPStream & | append (RLP const &_rlp, size_t _itemCount=1) |
| | Appends an arbitrary RLP fragment - this must be a single item unless _itemCount is given. More...
|
| |
| template<class _T > |
| RLPStream & | append (std::vector< _T > const &_s) |
| | Appends a sequence of data to the stream as a list. More...
|
| |
| template<class _T > |
| RLPStream & | appendVector (std::vector< _T > const &_s) |
| |
| template<class _T , size_t S> |
| RLPStream & | append (std::array< _T, S > const &_s) |
| |
| template<class _T > |
| RLPStream & | append (std::set< _T > const &_s) |
| |
| template<class _T > |
| RLPStream & | append (std::unordered_set< _T > const &_s) |
| |
| template<class T , class U > |
| RLPStream & | append (std::pair< T, U > const &_s) |
| |
| RLPStream & | appendList (size_t _items) |
| | Appends a list. More...
|
| |
| RLPStream & | appendList (bytesConstRef _rlp) |
| |
| RLPStream & | appendList (bytes const &_rlp) |
| |
| RLPStream & | appendList (RLPStream const &_s) |
| |
| RLPStream & | appendRaw (bytesConstRef _rlp, size_t _itemCount=1) |
| | Appends raw (pre-serialised) RLP data. Use with caution. More...
|
| |
| RLPStream & | appendRaw (bytes const &_rlp, size_t _itemCount=1) |
| |
| template<class T > |
| RLPStream & | operator<< (T _data) |
| | Shift operators for appending data items. More...
|
| |
| void | clear () |
| | Clear the output stream so far. More...
|
| |
| bytes const & | out () const |
| | Read the byte stream. More...
|
| |
| bytes && | invalidate () |
| | Invalidate the object and steal the output byte stream. More...
|
| |
| void | swapOut (bytes &_dest) |
| | Swap the contents of the output stream out for some other byte array. More...
|
| |
Class for writing to an RLP bytestream.
Definition at line 369 of file RLP.h.
◆ RLPStream() [1/2]
| dev::RLPStream::RLPStream |
( |
| ) |
|
|
inline |
◆ RLPStream() [2/2]
| dev::RLPStream::RLPStream |
( |
size_t |
_listItems | ) |
|
|
inlineexplicit |
Initializes the RLPStream as a list of _listItems items.
Definition at line 376 of file RLP.h.
◆ ~RLPStream()
| dev::RLPStream::~RLPStream |
( |
| ) |
|
|
inline |
◆ append() [1/15]
◆ append() [2/15]
◆ append() [3/15]
◆ append() [4/15]
| RLPStream& dev::RLPStream::append |
( |
char const * |
_s | ) |
|
|
inline |
◆ append() [5/15]
template<unsigned N>
| RLPStream& dev::RLPStream::append |
( |
FixedHash< N > |
_s, |
|
|
bool |
_compact = false, |
|
|
bool |
_allOrNothing = false |
|
) |
| |
|
inline |
◆ append() [6/15]
| RLPStream& dev::RLPStream::append |
( |
RLP const & |
_rlp, |
|
|
size_t |
_itemCount = 1 |
|
) |
| |
|
inline |
Appends an arbitrary RLP fragment - this must be a single item unless _itemCount is given.
Definition at line 392 of file RLP.h.
◆ append() [7/15]
template<class _T , size_t S>
| RLPStream& dev::RLPStream::append |
( |
std::array< _T, S > const & |
_s | ) |
|
|
inline |
◆ append() [8/15]
template<class T , class U >
| RLPStream& dev::RLPStream::append |
( |
std::pair< T, U > const & |
_s | ) |
|
|
inline |
◆ append() [9/15]
template<class _T >
| RLPStream& dev::RLPStream::append |
( |
std::set< _T > const & |
_s | ) |
|
|
inline |
◆ append() [10/15]
| RLPStream& dev::RLPStream::append |
( |
std::string const & |
_s | ) |
|
|
inline |
◆ append() [11/15]
template<class _T >
| RLPStream& dev::RLPStream::append |
( |
std::unordered_set< _T > const & |
_s | ) |
|
|
inline |
◆ append() [12/15]
template<class _T >
| RLPStream& dev::RLPStream::append |
( |
std::vector< _T > const & |
_s | ) |
|
|
inline |
Appends a sequence of data to the stream as a list.
Definition at line 395 of file RLP.h.
◆ append() [13/15]
◆ append() [14/15]
◆ append() [15/15]
| RLPStream& dev::RLPStream::append |
( |
unsigned |
_s | ) |
|
|
inline |
Append given datum to the byte stream.
Definition at line 381 of file RLP.h.
◆ appendList() [1/4]
◆ appendList() [2/4]
◆ appendList() [3/4]
◆ appendList() [4/4]
| RLPStream & RLPStream::appendList |
( |
size_t |
_items | ) |
|
Appends a list.
Definition at line 268 of file RLP.cpp.
◆ appendRaw() [1/2]
| RLPStream& dev::RLPStream::appendRaw |
( |
bytes const & |
_rlp, |
|
|
size_t |
_itemCount = 1 |
|
) |
| |
|
inline |
◆ appendRaw() [2/2]
Appends raw (pre-serialised) RLP data. Use with caution.
Definition at line 222 of file RLP.cpp.
◆ appendVector()
template<class _T >
| RLPStream& dev::RLPStream::appendVector |
( |
std::vector< _T > const & |
_s | ) |
|
|
inline |
◆ clear()
| void dev::RLPStream::clear |
( |
| ) |
|
|
inline |
Clear the output stream so far.
Definition at line 416 of file RLP.h.
◆ invalidate()
| bytes&& dev::RLPStream::invalidate |
( |
| ) |
|
|
inline |
Invalidate the object and steal the output byte stream.
Definition at line 422 of file RLP.h.
◆ operator<<()
template<class T >
| RLPStream& dev::RLPStream::operator<< |
( |
T |
_data | ) |
|
|
inline |
Shift operators for appending data items.
Definition at line 413 of file RLP.h.
◆ out()
| bytes const& dev::RLPStream::out |
( |
| ) |
const |
|
inline |
Read the byte stream.
Definition at line 419 of file RLP.h.
◆ swapOut()
| void dev::RLPStream::swapOut |
( |
bytes & |
_dest | ) |
|
|
inline |
Swap the contents of the output stream out for some other byte array.
Definition at line 425 of file RLP.h.
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ethereum-cpp-1.6.0/libdevcore/RLP.h
- /home/abuild/rpmbuild/BUILD/ethereum-cpp-1.6.0/libdevcore/RLP.cpp