[erlang-questions] Passing data between Erlang and C port while preserving padding and alignment?

Roger Lipscombe roger@REDACTED
Fri Dec 7 22:02:58 CET 2018


On Fri, 7 Dec 2018 at 18:02, Frank Muller <frank.muller.erl@REDACTED>
wrote:

> Thanks Mikael.
> Any others thoughts ?
>

I'm assuming that you've considered serializing and deserializing the data
to an unpadded (or defined padding) format, but that you've presumably
discounted it for performance reasons?

Just putting it out there in case someone's facing a similar issue, but has
different constraints.

We once used XDR for this (with some kind of IDL-to-C converter, if I
recall correctly). Some brief googling suggests that XDR is not dead yet.

Cheers,
Roger.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20181207/83337270/attachment.htm>


More information about the erlang-questions mailing list