Skip to content

Encode UEFI's peculiar string handling in the type system #61

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

Merged
merged 9 commits into from
Oct 14, 2018

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants