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

Handle range access on fragmented memory for hash and math modules. #103

Merged
merged 3 commits into from
Dec 31, 2023

Conversation

vthib
Copy link
Owner

@vthib vthib commented Dec 31, 2023

For some expressions, we want to be able to make them work even if regions are chunked. To do so, we need a new API to iterate on multiple distinct byte slices. This is done with the new Memory::on_range method.

This uses a callback instead of returning an iterator to guarantee that only one region can be fetched at a given time, which is a constraint used in the memory trait.

For some expressions, we want to be able to make them work even if
regions are chunked. To do so, we need a new API to iterate on multiple
distinct byte slices. This is done with the new Memory::on_range method.
This uses a callback instead of returning an iterator to guarantee that
only one region can be fetched at a given time, which is a constraint
used in the memory trait.
@vthib vthib merged commit 0a5f86b into master Dec 31, 2023
11 checks passed
@vthib vthib deleted the fragmented-range branch December 31, 2023 17:32
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.

1 participant