1 #ifndef _MF_PROTOOUTPUTBUFFERWRAPPER_H_
2 #define _MF_PROTOOUTPUTBUFFERWRAPPER_H_
4 #include <MFProtoOutputBuffer.h>
6 #include <boost/noncopyable.hpp>
28 T&
msg() {
return _msg; }
34 MFProtoOutputBuffer&
buf() {
return _buf; }
43 _buf.allocateNextMsg(_msg);
56 _buf.allocateNextMsg(_msg, msgSize);
60 MFProtoOutputBuffer _buf;
A wrapper to encapsulate an SBE class instance and the buffer where the message payload is actually s...
Definition: MFProtoMsgWrapper.h:17
void reset(size_t msgSize)
Clear out the buffer - resetting counters to the beginning. Allocate a block of the buffer for the he...
Definition: MFProtoMsgWrapper.h:54
void reset()
Clear out the buffer - resetting counters to the beginning. Allocate a block of the buffer for the he...
Definition: MFProtoMsgWrapper.h:41
T & msg()
Return a reference to the message object. Note that if the message has been sent, this reference will...
Definition: MFProtoMsgWrapper.h:28
MFProtoOutputBuffer & buf()
Return a reference to the buffer where the object payload is stored.
Definition: MFProtoMsgWrapper.h:34