Skip to content

Instantly share code, notes, and snippets.

@aj07

aj07/app.rb Secret

Created June 27, 2015 10:40
Show Gist options
  • Save aj07/e0e9164c66dc31f651f1 to your computer and use it in GitHub Desktop.
Save aj07/e0e9164c66dc31f651f1 to your computer and use it in GitHub Desktop.
require 'ffi'
require 'mylibrary'
def new_message
builder = MallocMessageBuilder.new
builder.init_root(self)
end
MyLibrary.printAddressBook("data.bin");
MyLibrary.writeAddressBook(MallocMessageBuilder("data.bin"));
#direct body of printAddressBook
MyLibrary.getRoot
#MyLibrary.read();
@aj07
Copy link
Author

aj07 commented Jun 27, 2015

myapp.rb:12: undefined method `MallocMessageBuilder' for main:Object (NoMethodError)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment