Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The Ruby FFI gem defines FFI::Pointer.size, JRuby FFI does not.
The size method is nice to have in case you ever subclass FFI::AutoPointer, and then want to create a memory pointer from that, which needs the size:
ptr = Class.new(FFI::AutoPointer) do
# something clever
# def self.size
FFI::MemoryPointer.new(ptr) # raises error on jruby, since size is missing
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.