pub struct ProgramHeader64 {
pub ty: ProgramHeaderType,
pub flags: ProgramHeaderFlags,
pub offset: u64,
pub virt_addr: u64,
pub phys_addr: u64,
pub size_in_file: u64,
pub size_in_memory: u64,
pub alignment: u64,
}Fields§
§ty: ProgramHeaderType§flags: ProgramHeaderFlags§offset: u64§virt_addr: u64§phys_addr: u64§size_in_file: u64§size_in_memory: u64§alignment: u64Trait Implementations§
Source§impl BinarySerde for ProgramHeader64
impl BinarySerde for ProgramHeader64
Source§const SERIALIZED_SIZE: usize = 56usize
const SERIALIZED_SIZE: usize = 56usize
the size of this type when serialized to a packed binary format.
Source§type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <ProgramHeaderType as BinarySerde>::RecursiveArray>, <ProgramHeaderFlags as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>
type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <ProgramHeaderType as BinarySerde>::RecursiveArray>, <ProgramHeaderFlags as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>, <u64 as BinarySerde>::RecursiveArray>
the fixed size recursive array type that is returned when serializing this type to an array.
the length of this array is guaranteed to be equal to
Self::SERIALIZED_SIZE.Source§fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
serialize this value into the given buffer using the given endianness. Read more
Source§fn binary_deserialize(
buf: &[u8],
endianness: Endianness,
) -> Result<Self, DeserializeError>
fn binary_deserialize( buf: &[u8], endianness: Endianness, ) -> Result<Self, DeserializeError>
deserializes the given buffer using the given endianness into a value of this type. Read more
Source§fn binary_serialize_to_array(
&self,
endianness: Endianness,
) -> Self::RecursiveArray
fn binary_serialize_to_array( &self, endianness: Endianness, ) -> Self::RecursiveArray
serialize this value to a fixed size array using the given endianness.
Source§impl Clone for ProgramHeader64
impl Clone for ProgramHeader64
Source§fn clone(&self) -> ProgramHeader64
fn clone(&self) -> ProgramHeader64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgramHeader64
impl Debug for ProgramHeader64
Source§impl Hash for ProgramHeader64
impl Hash for ProgramHeader64
Source§impl PartialEq for ProgramHeader64
impl PartialEq for ProgramHeader64
impl Eq for ProgramHeader64
impl StructuralPartialEq for ProgramHeader64
Auto Trait Implementations§
impl Freeze for ProgramHeader64
impl RefUnwindSafe for ProgramHeader64
impl Send for ProgramHeader64
impl Sync for ProgramHeader64
impl Unpin for ProgramHeader64
impl UnwindSafe for ProgramHeader64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more