Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
GabrielMajeri merged 9 commits into master from char-types
Oct 14, 2018

Conversation

Copy link
Contributor

@HadrienG2 HadrienG2 commented Oct 13, 2018
edited
Loading

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 reacted with thumbs up emoji
@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
Reviewers

@GabrielMajeri GabrielMajeri Awaiting requested review from GabrielMajeri

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /