-
Notifications
You must be signed in to change notification settings - Fork 161
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
cstr[ing]16: convenience functions #751
Conversation
eb91c71
to
d877642
Compare
uefi/src/data_types/owned_strs.rs
Outdated
pub struct CString16(Vec<Char16>); | ||
|
||
impl CString16 { | ||
/// Creates a new empty string with a null-byte. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"null character" rather than null byte, since for a Char16 it's two bytes.
e93168b
to
6796370
Compare
I think I addressed all points. Thanks for the feedback. Are we good to go now? |
3c9d948
to
d04b48f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one more "null-byte" comment that should be updated to "null character", otherwise LGTM.
For #747 I'm about to add a
PathBuf
struct as wrapper aroundCString16
, akin to the standard library. For this, a lot of convenience functions are missing onCStr16
andCString16
. This PR adds those.Checklist