rizin/r2-bindings/nodejs/r_util.js
pancake 0c69d7c0bd * Initial working examples for nodejs + r_asm
- Requires: npm install node-ffi
2011-10-12 05:22:00 +02:00

12 lines
229 B
JavaScript

var FFI = require("node-ffi");
/* Example using r_util api */
var libr_util = new FFI.Library ("/usr/lib/libr_util", {
"r_str_rwx": [ "int" , ["string"]]
});
/*
var o = libr_util.r_str_rwx("rw");
console.log ("rw = "+o);
*/