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

Add AbstractMemory#get and AbstractMemory#put #515

Merged
merged 1 commit into from Jul 25, 2016

Conversation

furunkel
Copy link
Contributor

Similar to #472, but a cleaner and more general approach, IMHO.
These methods are especially useful for writing and reading to pointers of typedef'd types, such
as size_t.

@furunkel furunkel force-pushed the memory_get_set branch 3 times, most recently from 45a7bd4 to ea0df1c Compare July 17, 2016 16:32
@tduehr
Copy link
Member

tduehr commented Jul 19, 2016

Looks good. Can you add some more tests for the other primitive types and for second level typedefs?

@furunkel
Copy link
Contributor Author

Added some more tests. Should now be good to go.

@tduehr tduehr merged commit b3eb0f3 into ffi:master Jul 25, 2016
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 this pull request may close these issues.

None yet

2 participants