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

How does one read a value of :size_t from a MemoryPointer? #537

Open
lilith opened this issue Nov 8, 2016 · 0 comments · May be fixed by #958
Open

How does one read a value of :size_t from a MemoryPointer? #537

lilith opened this issue Nov 8, 2016 · 0 comments · May be fixed by #958

Comments

@lilith
Copy link

lilith commented Nov 8, 2016

If I attempt to call .read(:size_t),
I get this error: NoMethodError: undefined method read' for #<FFI::MemoryPointer address=0x007f941a67f090 size=8>`

The only example I can find is here:

expect(m.read :size_t).to eq(10)

@Kerilk Kerilk linked a pull request May 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant