Struct ctru_sys::CodeSetHeader

source ·
#[repr(C)]
pub struct CodeSetHeader {
Show 14 fields pub name: [u8_; 8], pub version: u16_, pub padding: [u16_; 3], pub text_addr: u32_, pub text_size: u32_, pub ro_addr: u32_, pub ro_size: u32_, pub rw_addr: u32_, pub rw_size: u32_, pub text_size_total: u32_, pub ro_size_total: u32_, pub rw_size_total: u32_, pub padding2: u32_, pub program_id: u64_,
}
Expand description

Information on address space for process. All sizes are in pages (0x1000 bytes)

Fields§

§name: [u8_; 8]

< ASCII name of codeset

§version: u16_

< Version field of codeset (unused)

§padding: [u16_; 3]

< Padding

§text_addr: u32_

< .text start address

§text_size: u32_

< .text number of pages

§ro_addr: u32_

< .rodata start address

§ro_size: u32_

< .rodata number of pages

§rw_addr: u32_

< .data, .bss start address

§rw_size: u32_

< .data number of pages

§text_size_total: u32_

< total pages for .text (aligned)

§ro_size_total: u32_

< total pages for .rodata (aligned)

§rw_size_total: u32_

< total pages for .data, .bss (aligned)

§padding2: u32_

< Padding

§program_id: u64_

< Program ID

Trait Implementations§

source§

impl Clone for CodeSetHeader

source§

fn clone(&self) -> CodeSetHeader

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CodeSetHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CodeSetHeader

source§

fn default() -> CodeSetHeader

Returns the “default value” for a type. Read more
source§

impl Copy for CodeSetHeader

Auto Trait Implementations§

§

impl RefUnwindSafe for CodeSetHeader

§

impl Send for CodeSetHeader

§

impl Sync for CodeSetHeader

§

impl Unpin for CodeSetHeader

§

impl UnwindSafe for CodeSetHeader

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.