| 61 | #[derive(Parser)] |
| 62 | #[clap(about, long_about = None, author="Copyright (c) 2022, Magnet Forensics, Inc.", version = CRATE_VERSION)] |
| 63 | struct Args { |
| 64 | /// Write to stdout instead of a file. |
| 65 | #[clap(short='0', long)] |
| 66 | to_stdout: bool, |
| 67 | /// Create a single core dump file instead of a compressed archive. |
| 68 | #[clap(short, long)] |
| 69 | raw: bool, |
| 70 | /// Print extra output while parsing |
| 71 | #[clap(short, long)] |
| 72 | verbose: bool, |
| 73 | /// Writes output to a named pipe. Note that if DumpIt is set to write an archive, it will write the archive to the pipe |
| 74 | #[clap(short, long)] |
| 75 | pipe: bool, |
| 76 | /// Path to the output archive, file, or named pipe. |
| 77 | #[clap(value_name = "Output Path")] |
| 78 | output_path: Option<String>, |
| 79 | } |
| 80 | |
| 81 | const PAGE_SIZE: usize = 0x1000; |
| 82 | const ELF_ALIGN: usize = 4; |
nothing calls this directly
no outgoing calls
no test coverage detected