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

Additional utility methods. #17

Closed
Lokathor opened this issue Jun 7, 2021 · 0 comments · Fixed by #18
Closed

Additional utility methods. #17

Lokathor opened this issue Jun 7, 2021 · 0 comments · Fixed by #18

Comments

@Lokathor
Copy link
Member

Lokathor commented Jun 7, 2021

Inspired by what they're doing over in rust-osdev/volatile#22, we probably want the following:

  • Address "map": reads the address into memory, runs a closure that gets &mut T, then writes back the new T value.
  • Block "copy from slice": copies data from a slice into the block.
  • Block "fill": write a value to all elements in a block.
@Lokathor Lokathor mentioned this issue Jun 7, 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 a pull request may close this issue.

1 participant