TooTallNate / ref-struct

Create ABI-compliant "struct" instances on top of Buffers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for unions

benjamincburns opened this issue · comments

I'm using this to write a TUN/TAP module for opening, reading from, and writing to TUN and TAP devices. I'm trying to keep my module pure JavaScript, using things like santigimeno/node-ioctl and ref-struct, but I'm running into difficulties porting over the struct types for ifreq and friends, as some of them contain unions. I've seen adammw/ref-union, but its README.md lists it as unstable, and it strikes me that unions should be supported as part of this module.

Ugh. Nevermind. I really should read more...

https://github.com/TooTallNate/ref-union

:) let me know if you run into any troubles

On Saturday, June 28, 2014, Benjamin Burns notifications@github.com wrote:

Closed #8 #8.


Reply to this email directly or view it on GitHub
#8 (comment).

Cheers. If like me you enjoy seeing how people use your stuff, have a look at https://github.com/benjamincburns/node-tuntap