We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c277fb8 commit 4396721Copy full SHA for 4396721
multiboot2/src/lib.rs
@@ -249,6 +249,12 @@ impl BootInformation {
249
self.get_tag::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
250
}
251
252
+ /// Search for the basic memory info tag, return a mutable reference.
253
+ pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
254
+ self.get_tag_mut(TagType::BasicMeminfo)
255
+ .map(|tag| unsafe { &mut *(tag as *mut Tag as *mut BasicMemoryInfoTag) })
256
+ }
257
+
258
/// Search for the ELF Sections.
259
///
260
/// # Examples
0 commit comments