TooTallNate / ref-struct

Create ABI-compliant "struct" instances on top of Buffers
118 stars 78 forks source link

Add support for unions #8

Closed benjamincburns closed 10 years ago

benjamincburns commented 10 years ago

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.

benjamincburns commented 10 years ago

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

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

TooTallNate commented 10 years ago

:) let me know if you run into any troubles

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

Closed #8 https://github.com/TooTallNate/ref-struct/issues/8.

— Reply to this email directly or view it on GitHub https://github.com/TooTallNate/ref-struct/issues/8#event-136228277.

benjamincburns commented 10 years ago

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