We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1971bc9 commit e8f3e73Copy full SHA for e8f3e73
multiboot2/src/lib.rs
@@ -236,6 +236,12 @@ impl BootInformation {
236
.map(|tag| unsafe { &*(tag as *const Tag as *const BasicMemoryInfoTag) })
237
}
238
239
+ /// Search for the basic memory info tag, return a mutable reference.
240
+ pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
241
+ self.get_tag(TagType::BasicMeminfo)
242
+ .map(|tag| unsafe { &mut *(tag as *const Tag as *mut BasicMemoryInfoTag) })
243
+ }
244
+
245
/// Search for the ELF Sections tag.
246
pub fn elf_sections_tag(&self) -> Option<&ElfSectionsTag> {
247
self.get_tag(TagType::ElfSections)
0 commit comments