Skip to content

Group xMessageBufferNextLengthBytes

Modules > xMessageBufferNextLengthBytes

More...

Detailed Description

message_buffer.h Returns the length (in bytes) of the next message in a message buffer. Useful if xMessageBufferReceive() returned 0 because the size of the buffer passed into xMessageBufferReceive() was too small to hold the next message.

Parameters:

  • xMessageBuffer The handle of the message buffer being queried.

Returns:

The length (in bytes) of the next message in the message buffer, or 0 if the message buffer is empty.