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

Improve handling of memory regions #21

Closed
wants to merge 2 commits into from
Closed

Improve handling of memory regions #21

wants to merge 2 commits into from

Conversation

antiguru
Copy link
Owner

Avoid using a From implementation to turn &mut [u8] into Mem and instead hoist that logic into try_refill_and_get. Recover memory from the Region's vector directly since we know it starts at the beginning of the region.

Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
@antiguru
Copy link
Owner Author

Not relevant anymore.

@antiguru antiguru closed this Feb 21, 2024
@antiguru antiguru deleted the better_unsafe branch February 21, 2024 18:09
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