Skip to content
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

Sketch a Loadable protocol #402

Draft
wants to merge 1 commit into
base: future
Choose a base branch
from
Draft

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Jul 9, 2024

Loadable enables safe loading of values from RawSpan and other byte streams. It depends on AutoLoadable, which represent Loadable types that have no invalid bit pattern.

This is an exploration of bit pattern validation, an idea originally presented as an alternative to a layout constraint the forums called AnyBitPattern. It turns out that the validation approach simply builds upon the layout constraint.

`Loadable` enables safe loading of values from `RawSpan` and other byte streams. It depends on `AutoLoadable`, which represent `Loadable` types that have no invalid bit pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants