eRPC API Reference
Rev. 1.12.0
NXP Semiconductors
|
RPMsg zero copy message buffer factory. More...
Public Member Functions | |
RPMsgMessageBufferFactory (struct rpmsg_lite_instance *rpmsg) | |
Constructor. More... | |
virtual | ~RPMsgMessageBufferFactory (void) |
Destructor. | |
virtual MessageBuffer | create (void) |
This function creates new message buffer. More... | |
virtual void | dispose (MessageBuffer *buf) |
This function disposes message buffer. More... | |
virtual erpc_status_t | prepareServerBufferForSend (MessageBuffer &message, uint8_t reserveHeaderSize=0) |
This function is preparing output buffer on server side. More... | |
virtual bool | createServerBuffer (void) |
This function informs server if it has to create buffer for received message. More... | |
Protected Attributes | |
struct rpmsg_lite_instance * | m_rpmsg |
RPMsg zero copy message buffer factory.
|
inlineexplicit |
Constructor.
[in] | rpmsg | Pointer to instance of RPMSG lite. |
|
inlinevirtual |
This function creates new message buffer.
Implements erpc::MessageBufferFactory.
|
inlinevirtual |
This function disposes message buffer.
[in] | buf | MessageBuffer to dispose. |
Implements erpc::MessageBufferFactory.
|
inlinevirtual |
This function is preparing output buffer on server side.
This function do decision if this function want reuse buffer, or use new buffer. In case of using new buffer function has to free given buffer.
[in] | message | MessageBuffer which can be reused. |
[in] | reserveHeaderSize | Reserved amount of bytes at the beginning of message buffer. |
Reimplemented from erpc::MessageBufferFactory.
|
inlinevirtual |
This function informs server if it has to create buffer for received message.
Reimplemented from erpc::MessageBufferFactory.
|
protected |
Pointer to instance of RPMSG lite.