3 ms·
> The receiver can always make right. Certainly but that’s hardly structs anymore. You are implicitly defining a binary format which is aligned on the sender m
by RandomThoughts3 2y ago
> The receiver can always make right.
Certainly but that’s hardly structs anymore. You are implicitly defining a binary format which is aligned on the sender memory layout then.
- cryptonector 2y agoIt's "structs" when the sender and receiver are using the same architecture, and if they're using the same int/long/pointer sizes then the only work to do is swabbing and pointer validation / fixups. That's a lot less work than is needed to do just about any encoding like protocol buffers, but it's not far from flat buffers and capnp.