is sending a struct cast to uint8_t * or char * to a message queue safe?

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Protobuf

    Protocol Buffers - Google's data interchange format

  • Yeah, by binary serialization I just mean that you take your data that is in a struct and lay it out with some metadata so that it can be decoded by a software layer that doesn't need to know the details of the original C struct packing. Also if your struct contains pointers to other structs or memory (e.g. string pointers) it's just necessary to serialize that before (or while) sending. There are some existing standards for that, OSC is one that I mentioned, but there is also e.g. BJSON or Google's Protobuf. Like I said, I do not know mq well so maybe there are some usual ways to go about that with mq.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts