Skip to content
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

[FFI] FFI::Pointer#slice is not defined #608

Burgestrand opened this Issue Mar 27, 2013 · 0 comments


None yet
1 participant
Copy link

Burgestrand commented Mar 27, 2013

Ruby FFI gem has Pointer#slice, JRuby does not:

Personally I use slice to slice any arbitrary pointer from the beginning of the pointer, in order to give it size information (to ensure I do not go out of bounds when reading or writing).

pointer =, length)
# any attempts to manipulate beyond pointer arbitrary_address + length fails with an error

@ghost ghost self-assigned this Mar 27, 2013

@ghost ghost closed this in a29d8e0 Mar 27, 2013

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.