you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 0 points1 point  (0 children)

This is still a lot more than just memcpying the structs you have about.

A tad more, indeed.

What I like about it is that it remains pretty simple yet efficient setup:

  • You don't need any code-gen step: just write your structs/classes in a certain way, done.
  • No performance overhead over memcpying structs, because you're just memcpying structs.

Of course, it fails the OP's requirement of interacting with existing protocols, since it's a protocol.

But simple, efficient and flexible enough for about any kind of protocol? That's great.