-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Documentation improvements
- Loading branch information
Showing
18 changed files
with
612 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
/// Memory section data, including a buffer vector, and start and end addresses | ||
/// Memory section data, including a buffer (a vector of bytes) and start and end addresses | ||
#[derive(Default)] | ||
pub struct MemSection { | ||
pub start: u64, | ||
pub end: u64, | ||
pub buffer: Vec<u8>, | ||
} | ||
|
||
/// Default constructor for MemSection structure | ||
impl Default for MemSection { | ||
fn default() -> Self { | ||
Self::new() | ||
} | ||
} | ||
|
||
/// Memory section structure implementation | ||
impl MemSection { | ||
/// Memory section constructor | ||
pub fn new() -> MemSection { | ||
MemSection { start: 0, end: 0, buffer: Vec::new() } | ||
} | ||
} |
Oops, something went wrong.