-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivated by Traverse-Research/gpu-allocator#139, scaffolded some read-helper functions. These helpers are mostly all unsafe and have both semi-checked and completely unchecked variants. They are relevant in either case because they lay out in documentation exactly what the needed safety requirements are to read the given data, given that we have a properly implemented `Slab`, and try to remove some common footguns (alignment, size within allocation) where possible in the checked variants. A note for reviewers is that you can skip the `copy.rs` file as that is just code movement from the old `lib.rs`. @eddyb, requested your review since you helped validate `presser` originally and you might have some valuable input on the safety comments/requirements here.
- Loading branch information
Showing
5 changed files
with
1,249 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.