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 FFI::AbstractMemory#read_array_of_string #1096

Merged
merged 1 commit into from Apr 24, 2024

Conversation

larskanis
Copy link
Member

It was defined but not exposed to Ruby nor tested.

Fixes #1070

It was defined but not exposed to Ruby nor tested.

Fixes ffi#1070
@larskanis
Copy link
Member Author

@eregon This method is missing in Truffleruby. We could implement it here as a ruby method, but since JRuby already implements it natively, I tend to do it equally in all 3 implementations. Would you mind to add FFI::AbstractMemory#read_array_of_string to Truffleruby?

@eregon
Copy link
Collaborator

eregon commented Apr 22, 2024

Yeah, I will add it.
Since https://github.com/ffi/ffi/blob/master/lib/ffi/pointer.rb doesn't have get_array_of_string, I agree, better to keep these related methods together.

graalvmbot pushed a commit to oracle/truffleruby that referenced this pull request Apr 23, 2024
@eregon
Copy link
Collaborator

eregon commented Apr 23, 2024

Will be fixed in oracle/truffleruby#3550

@eregon
Copy link
Collaborator

eregon commented Apr 24, 2024

@larskanis I restarted the truffleruby CI jobs, it's all green now, so I'll merge this.

@eregon eregon merged commit 46c3804 into ffi:master Apr 24, 2024
82 checks passed
@larskanis larskanis deleted the add_read_aos branch April 24, 2024 17:46
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.

There’s an unexposed AbstractMemory#read_array_of_string
2 participants