I\'m porting a C# library to Javascript. The library uses some C++ (in a .cs file - I don\'t know how that works) and pointer trickery that I can\'t begin to parse out as I