[erlang-questions] operate C data structure using Erlang
Mon Apr 16 11:41:42 CEST 2012
On Mon, Apr 16, 2012 at 11:33, Jovi Zhang <> wrote:
> Currently I'm working a Erlang project which need send msg represent by C
> language data structure.
> I know that Erlang have record represent by tuple, Is there have any open
> source project aim on resolve this problem?
> generate record format for C data structure automatically? note that there
> have many C data structure need to transform.
> There have JSON and protobuf, but none is toward plain C data structure, I
> cannot change the message protocol now because Erlang node need to
> communicate with C node.
Erlang has absolutely awesome tools to work with binaries. You will be
able to parse and create binaries you want, including binary which can
be represented with C structs. Of course assuming you are talking
about parsing C structs which have been transported to Erlang via a
More information about the erlang-questions