Re: [nodejs] Convert C struct in nodejs code

26 views
Skip to first unread message

Ryan Graham

unread,
Sep 24, 2015, 11:24:25 AM9/24/15
to nodejs
You probably want to start by reading up on nan and some of the v8 documentation it links to: https://github.com/nodejs/nan

It includes some helpers and wrappers that might help, but more importantly it will make it a lot easier to be compatible with multiple versions of node if/when that becomes important for your project.

~Ryan

On Mon, 21 Sep 2015 at 23:33 Leopoldo Belmonte <leopoldo...@gmail.com> wrote:
Hi

I need to convert a C data structures into nodejs code.

the C structure is:

typedef struct { 
char Amount[8+1]; 
char ECRId[8+1]; 
char PaymentType[1+1];
char CashId[8+1];
}cashData;

i would like to konw which nodejs module I have to use and how I can do assignment to attribute of the structure.

Thank you

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7b90a7ab-40a8-40b5-be68-6f257f2cb2ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages