|
SofaBuffers C/C++ 0.12.0
API Documentation
|
Concept: a serializable message type usable with OStreamObject. More...
#include <sofab.hpp>
Concept: a serializable message type usable with OStreamObject.
Derives from OStreamMessage and declares its worst-case encoded size.
CORELIB_PLAN §6.1.1 closes the generated-object name set and puts **MAX_SIZE** in it, permitting "only casing/idiom …, never the words". This concept required _maxSize, an underscore-prefixed private-marker spelling that is past casing — and because the concept is a hard requirement, it fixed that name for every generated type built against this corelib. (The C side was never affected: generated C emits MESSAGE_<NAME>_MAX_SIZE, an idiomatic C macro spelling.)
Both spellings are accepted so the rename is not a flag day: a generated tree built against 0.10 keeps compiling while the cpp backend switches over. _maxSize is deprecated and will be dropped once no emitter uses it.