[erlang-questions] re： operate C data structure using Erlang
Mon Apr 16 14:59:32 CEST 2012
The situation Erlang need to follow C style data structure, before send to C, you need to convert Erlang record into C style date structure, right? And you said there are pretty C structures. In fact you can implement an module encode/decode Erlang record into C style automatically. Phase C head file then write to an file that can tell Erlang how to do the alignment for specify signal. It's not too difficult, just write it by yourself.
发件人： Jovi Zhang <>
发送日期： 2012年4月16日, 星期一, 下午 5:33
主题: [erlang-questions] operate C data structure using Erlang
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-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions