Wrapper that overrides the GetParams() function of a stream.
Declared in <serialize.h>
template<
typename SubStream,
typename Params>
class ParamsStream;
| Name | Description |
|---|---|
ParamsStream [constructor] | Constructors |
GetParams | Get reference to stream parameters. |
GetStream | GetStream overloads |
empty | Return whether the underlying stream is empty. |
ignore | Skip the given number of bytes in the underlying stream. |
operator>> | Unserialize an object through this stream. |
read | Read bytes from the underlying stream. |
size | Return the number of bytes available in the underlying stream. |
write | Write bytes to the underlying stream. |
operator<< | Serialize an object through this stream. |
| Name | Description |
|---|---|
ParamsStream<Substream, Params> | Explicit template deduction guide is required for single-parameter constructor so Substream&& is treated as a forwarding reference, and SubStream is deduced as reference type for lvalue arguments. |
ParamsStream<decltype(ParamsStream{std::forward<Substream>(s), params2, params...}), Params1> | Template deduction guide for multiple params arguments that creates a nested ParamsStream. |