Struct nca_section_ctx_t

Source
#[repr(C)]
pub struct nca_section_ctx_t {
Show 20 fields pub is_present: c_int, pub type_: nca_section_type, pub file: *mut FILE, pub offset: u64, pub size: u64, pub section_num: u32, pub header: *mut nca_fs_header_t, pub is_decrypted: c_int, pub sector_size: u64, pub sector_mask: u64, pub aes: *mut aes_ctx_t, pub tool_ctx: *mut hactool_ctx_t, pub __bindgen_anon_1: nca_section_ctx_t__bindgen_ty_1, pub superblock_hash_validity: validity_t, pub ctr: [c_uchar; 16], pub cur_seek: u64, pub sector_num: usize, pub sector_ofs: u32, pub physical_reads: c_int, pub crypt_type: section_crypt_type_t,
}

Fields§

§is_present: c_int§type_: nca_section_type§file: *mut FILE§offset: u64§size: u64§section_num: u32§header: *mut nca_fs_header_t§is_decrypted: c_int§sector_size: u64§sector_mask: u64§aes: *mut aes_ctx_t§tool_ctx: *mut hactool_ctx_t§__bindgen_anon_1: nca_section_ctx_t__bindgen_ty_1§superblock_hash_validity: validity_t§ctr: [c_uchar; 16]§cur_seek: u64§sector_num: usize§sector_ofs: u32§physical_reads: c_int§crypt_type: section_crypt_type_t

Trait Implementations§

Source§

impl Clone for nca_section_ctx_t

Source§

fn clone(&self) -> nca_section_ctx_t

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for nca_section_ctx_t

Source§

fn default() -> Self

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

impl Copy for nca_section_ctx_t

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.