pub type XcoffSegment32<'data, 'file, R = &'data [u8]> = XcoffSegment<'data, 'file, FileHeader32, R>;
Expand description
A segment in an XcoffFile32
.
Aliased Type§
struct XcoffSegment32<'data, 'file, R = &'data [u8]> {
pub(super) file: &'file XcoffFile<'data, FileHeader32, R>,
}
Fields§
§file: &'file XcoffFile<'data, FileHeader32, R>
Trait Implementations
Source§impl<'data, 'file, Xcoff, R> Debug for XcoffSegment<'data, 'file, Xcoff, R>
impl<'data, 'file, Xcoff, R> Debug for XcoffSegment<'data, 'file, Xcoff, R>
Source§impl<'data, 'file, Xcoff, R> ObjectSegment<'data> for XcoffSegment<'data, 'file, Xcoff, R>where
Xcoff: FileHeader,
R: ReadRef<'data>,
impl<'data, 'file, Xcoff, R> ObjectSegment<'data> for XcoffSegment<'data, 'file, Xcoff, R>where
Xcoff: FileHeader,
R: ReadRef<'data>,
Source§fn file_range(&self) -> (u64, u64)
fn file_range(&self) -> (u64, u64)
Returns the offset and size of the segment in the file.
Source§fn data(&self) -> Result<&'data [u8]>
fn data(&self) -> Result<&'data [u8]>
Returns a reference to the file contents of the segment. Read more
Source§fn data_range(&self, _address: u64, _size: u64) -> Result<Option<&'data [u8]>>
fn data_range(&self, _address: u64, _size: u64) -> Result<Option<&'data [u8]>>
Return the segment data in the given range. Read more
Source§fn flags(&self) -> SegmentFlags
fn flags(&self) -> SegmentFlags
Return the flags of segment.