|
| RLPStream () |
| Initializes empty RLPStream.
|
|
| RLPStream (size_t _listItems) |
| Initializes the RLPStream as a list of _listItems items.
|
|
| ~RLPStream () |
|
void | reserve (size_t cap_out, size_t cap_lists) |
|
template<typename N > |
std::enable_if_t< is_integer< N >(Signedness::signed_only), RLPStream & > | append (N const &_i) |
|
template<typename N > |
std::enable_if_t< is_integer< N >(Signedness::unsigned_only), RLPStream & > | append (N const &_i) |
|
RLPStream & | append (bool _i) |
|
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) |
|
template<class _T > |
RLPStream & | append (std::vector< _T > const &_s) |
| Appends a sequence of data to the stream as a list.
|
|
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.
|
|
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.
|
|
RLPStream & | appendRaw (bytes const &_rlp, size_t _itemCount=1) |
|
template<class T > |
RLPStream & | operator<< (T _data) |
| Shift operators for appending data items.
|
|
void | clear () |
| Clear the output stream so far.
|
|
bytes const & | out () const |
| Read the byte stream.
|
|
bytes && | invalidate () |
| Invalidate the object and steal the output byte stream.
|
|
void | swapOut (bytes &_dest) |
| Swap the contents of the output stream out for some other byte array.
|
|
Class for writing to an RLP bytestream.