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
impl Clone for CodeSetHeader
source§fn clone(&self) -> CodeSetHeader
fn clone(&self) -> CodeSetHeader
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CodeSetHeader
impl Debug for CodeSetHeader
source§impl Default for CodeSetHeader
impl Default for CodeSetHeader
source§fn default() -> CodeSetHeader
fn default() -> CodeSetHeader
Returns the “default value” for a type. Read more