Skip to content

Commit

Permalink
read/macho: add LoadCommandData::raw_data (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Jul 20, 2022
1 parent 8e962e1 commit 404ae26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/read/macho/load_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ impl<'data, E: Endian> LoadCommandData<'data, E> {
.read_error("Invalid Mach-O command size")
}

/// Raw bytes of this LoadCommand structure.
pub fn raw_data(&self) -> &'data [u8] {
self.data.0
}

/// Parse a load command string value.
///
/// Strings used by load commands are specified by offsets that are
Expand Down

0 comments on commit 404ae26

Please sign in to comment.