I am just wondering why xQueueSend does not perform a size check for a message by taking a size_t variable and checking that size against the reception queue size.
If someone sends a message which is smaller than the reception queue, there is no error which indicates that, like for example in linux with the EMSGSIZE error:
MSG Size check
So one would just receive a “truncated” message. (if my testing was performed correctly)
I think this size check would be a nice feature. If I want to implement this size checking myself, I would need to keep a map which maps the reception queue to its maximum size (meaning I also have to cache that size). Is there a specific reason this was never implemented?
Kind Regards and thank you in advance!