|
SofaBuffers C/C++ 0.12.0
API Documentation
|
A message that both encodes and decodes: exactly OStreamMessage + IStreamMessage. More...
#include <sofab.hpp>
Additional Inherited Members | |
Public Member Functions inherited from sofab::IStreamMessage | |
| virtual void | deserialize (sofab::IStreamImpl &_istream, sofab::id _id, size_t _size, size_t _count) noexcept=0 |
| Dispatch one decoded field to the appropriate read. | |
Protected Member Functions inherited from sofab::OStreamMessage | |
| virtual OStreamImpl::Result | serialize (OStreamImpl &_ostream) const noexcept=0 |
Serialize this message's fields into _ostream. | |
A message that both encodes and decodes: exactly OStreamMessage + IStreamMessage.
Almost every message is both, so spelling out the pair at every declaration is noise. This is an empty intermediate base — no storage, no vtable slot of its own, identical layout to inheriting the two directly — so it is a naming convenience and nothing else:
Both sofab::InputMessage and sofab::OutputMessage are satisfied through it. Inherit a single side directly when a type really is one-way.