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 Pointer#read_array_of and Pointer#write_array_of #526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

furunkel
Copy link
Contributor

@furunkel furunkel commented Sep 9, 2016

This PR deprecates Pointer#read_array_of_type and Pointer#write_array_of_type and introduces Pointer#read_array_of and Pointer#writer_array_of.
The former two weren't useful at all as one had to pass, along with the type, a corresponding writer/reader.

@furunkel
Copy link
Contributor Author

@tduehr, anything wrong with this ?

@furunkel
Copy link
Contributor Author

@tduehr, can you either close this with a good reason or merge ?

Copy link
Member

@tduehr tduehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs tests for structs. Both going to and coming from C. Also needs tests for maximum values for an integer type.

@furunkel
Copy link
Contributor Author

@tduehr, ok, added some more specs and reimplemented straight in C; hope you deem this merge-worthy now.

@tduehr
Copy link
Member

tduehr commented Apr 15, 2017

Needs a bit of tweaking, but I'll get it from here.

@furunkel
Copy link
Contributor Author

@tduehr, refactored the code, for consistency it now raises TypeError for invalid types.

@furunkel
Copy link
Contributor Author

@tduehr any chance of getting this in ?

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