-
Notifications
You must be signed in to change notification settings - Fork 56
add missing functionality in multiboot2-header (finding the header, getting tags) #136
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
Conversation
8a28823
to
22d0a17
Compare
Hm, I think the parsing story is still a bit weird (pass the file, get the portion that is relevant as a slice, pin that and call
Edit: Forget that, the intermediate slice is needed, so that the whole file can be dropped. |
Please fix the minor CI problems and then we are good to go :) |
Well, that doesn't seem to work. :) Dereferencing pointers doesn't seem to be |
Oh.
|
This should make the function easier to use: If the header is not properly aligned or cut off, the function previously just returned None or might have even panicked.
I didn't break that failing lint. :) |
yes, you're right. I'll fix that soon |
thanks for the contribution! |
This is the first part split off of #133, as recommended by @phip1611 in #133 (comment):
The getters are very inspired by the ones in
multiboot2
.