MCPcopy Create free account
hub / github.com/MagnetForensics/dumpit-linux / display

Method display

src/main.rs:670–685  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

668
669 #[allow(dead_code)]
670 fn display(&self) {
671 let table = Table::new(&self.mem_ranges)
672 .with(Style::markdown());
673 info!("Total number of memory ranges: {}", self.mem_ranges.len());
674 println!("{}", table);
675
676 if let Some(vmcoreinfo) = &self.vmcoreinfo {
677 // let vec = buf[end..].to_vec();
678 // String::from_utf8(vmcoreinfo)
679 if let Ok(data) = String::from_utf8(vmcoreinfo.to_vec()) {
680 for line in data.lines() {
681 info!("VMCOREINFO: {}", line);
682 }
683 }
684 }
685 }
686
687 fn get_dump_size(&self) -> u64 {
688 let mut file_size = self.out_header.as_ref().expect("ELF Header is not initialized").len() as u64;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected