Skip to content

Conversation

@HadrienG2
Copy link
Contributor

@HadrienG2 HadrienG2 commented Oct 13, 2018

UEFI string handling is interesting. Some parts of the spec use Latin-1, others use UCS-2, and overall everyone uses null terminators. Since all of this is quite alien to the idiomatic Rust developer, I thought it could be worthwhile to encode the various constraints that are involved in the type system.

I also took the opportunity to fix a few safety bugs (safe functions taking pointers as input).

@GabrielMajeri GabrielMajeri merged commit 7817241 into master Oct 14, 2018
@HadrienG2 HadrienG2 deleted the char-types branch October 14, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants