crosvm/common/sys_util
Daniel Verkamp a3c6e95bb5 sys_util: add LayoutAllocation as_(mut_)slice()
These functions allow access to the allocated memory as a slice of a
generic type T, rather than just a single element of T like the existing
as_mut() function.

BUG=b:197247746
TEST=tools/presubmit --quick

Change-Id: I09287407b6179066fc14c96539c3032be19736a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3327573
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2021-12-13 20:48:22 +00:00
..
poll_token_derive Clippy fixes in common/* crates 2021-11-15 23:08:55 +00:00
src sys_util: add LayoutAllocation as_(mut_)slice() 2021-12-13 20:48:22 +00:00
.build_test_serial Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
Cargo.toml Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00