-
Notifications
You must be signed in to change notification settings - Fork 133
Read and write chunks of memory for CString #17
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
Comments
Dart FFI homepage links the following example: Even though it still iterates, it looks less cumbersome than the current solution so maybe we could switch to that if there's no more efficient solution (consider opening an issue on dart github). |
I tried looking for a way to read a C (contiguous?) memory block into a dart buffer(ish) type, but I haven't seen an appropiate ffi function for that. Reading and writing strings char by char does cost unnecessary cycles... |
I think this dart issue covers our use case dart-lang/sdk#35762 |
And there's actually a new FFI utility package by the core team that could help us
@Buggaboo would you be willing to give it a shot? |
I'm on it |
Thanks @Buggaboo for tackling this 🥇 |
Currently, writing strings to and reading strings from memory is done character by character. Try to find a more efficient method to do that.
Is mostly related to CString (#7), but also memory chunks in general.
The text was updated successfully, but these errors were encountered: