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

Specify Pointer#order and Struct#order #830

Merged
merged 5 commits into from
Oct 29, 2020
Merged

Conversation

chrisseaton
Copy link
Contributor

Also slight clarify documentation on Pointer#order, raise on an unknown order, and specify Platform::BYTE_ORDER etc.

Working towards oracle/truffleruby#2054.

Copy link
Member

@larskanis larskanis left a comment

Choose a reason for hiding this comment

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

This was on my agenda, but you solved it better than I would have!


before :each do
@pointer = @struct.new
@pointer.pointer.write_string("\x1\x2\x3\x4")
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be write_bytes since write_string might append a final \0 byte in future ffi releases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@larskanis larskanis merged commit 234ebce into ffi:master Oct 29, 2020
@larskanis
Copy link
Member

Thank you Chris!

@eregon
Copy link
Collaborator

eregon commented Oct 30, 2020

This doesn't pass CI on TruffleRuby, due to not being implemented yet: oracle/truffleruby#2054
It seems best to skip those specs on TruffleRuby until implemented to keep the CI green.

This was referenced Mar 16, 2021
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

3 participants