-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
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? Sign in to your account
Adds method to check of pointer size if bounded #829
Conversation
This sounds like a good idea to me. Right now FFI::Pointer#size returns LONG_MAX for unbounded pointers. |
Thanks @eregon. I think Edit: Somewhat related, it would also be nice to allow a size to be specified on initialization. |
Returning |
Hey @larskanis, thanks for the response! I thought |
Thanks @larskanis! |
Hi, thanks for this great library!
This PR adds a method to tell if the pointer size is bounded.
This can be useful for libraries that accept
FFI::Pointer
arguments.