forked from rust-osdev/uefi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uefi: Add CStr16 conversions from slices with interior nuls
This is modeled after `CStr::from_bytes_until_nul`, which was added in Rust 1.69. It's often the case that you have a slice of data containing a string, but the buffer size is larger than the string; these new methods make that case easy to handle. [1]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_until_nul
- Loading branch information
1 parent
321040e
commit 565c3c6
Showing
2 changed files
with
128 additions
and
1 deletion.
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