-
-
Save aj07/e0e9164c66dc31f651f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
myapp.rb:12: undefined method `MallocMessageBuilder' for main:Object (NoMethodError)