We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
require 'fiddle/import' S = Fiddle::Importer.struct(["int i"]) a = S.malloc a.i = 10 b = a.clone b.i = 20 p a.i # 20 p b.i # 20
require 'ffi' class S < FFI::Struct layout :i, :int end a = S.new a[:i] = 10 b = a.clone b[:i] = 20 p a[:i] # 10 p b[:i] # 20
The text was updated successfully, but these errors were encountered:
Add test to reproduce the issue reported in GH-66
d7d5836
59a4054
Successfully merging a pull request may close this issue.
Fiddle
Ruby-FFI
The text was updated successfully, but these errors were encountered: