Bitcoin Core 28.99.0
P2P Digital Currency
|
Wrapper that overrides the GetParams() function of a stream. More...
#include <serialize.h>
Public Member Functions | |
ParamsStream (SubStream &&substream, const Params ¶ms LIFETIMEBOUND) | |
template<typename NestedSubstream , typename Params1 , typename Params2 , typename... NestedParams> | |
ParamsStream (NestedSubstream &&s, const Params1 ¶ms1 LIFETIMEBOUND, const Params2 ¶ms2 LIFETIMEBOUND, const NestedParams &... params LIFETIMEBOUND) | |
template<typename U > | |
ParamsStream & | operator<< (const U &obj) |
template<typename U > | |
ParamsStream & | operator>> (U &&obj) |
void | write (Span< const std::byte > src) |
void | read (Span< std::byte > dst) |
void | ignore (size_t num) |
bool | eof () const |
size_t | size () const |
template<typename P > | |
const auto & | GetParams () const |
Get reference to stream parameters. More... | |
auto & | GetStream () |
Get reference to underlying stream. More... | |
const auto & | GetStream () const |
Private Attributes | |
const Params & | m_params |
SubStream | m_substream |
Wrapper that overrides the GetParams() function of a stream.
Definition at line 1112 of file serialize.h.
|
inline |
Definition at line 1125 of file serialize.h.
|
inline |
Definition at line 1128 of file serialize.h.
|
inline |
|
inline |
Get reference to stream parameters.
Definition at line 1141 of file serialize.h.
|
inline |
Get reference to underlying stream.
Definition at line 1151 of file serialize.h.
|
inline |
Definition at line 1159 of file serialize.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 1114 of file serialize.h.
|
private |
Definition at line 1122 of file serialize.h.