pub struct CiaMetadata {
pub archive_header_size: u32,
pub type_: u16,
pub version: u16,
pub certificate_chain_size: u32,
pub ticket_size: u32,
pub tmd_file_size: u32,
pub meta_size: u32,
pub content_size: u64,
pub content_index: Vec<u8>,
}Expand description
CIA container metadata.
Cia containers have the following sections in order:
- certificate chain
- Ticket
- TMD file data
- Content file data
- Meta (if
CiaMetadata::meta_sizeis not 0)
Each section starts aligned to 64 bytes.
Fields§
§archive_header_size: u32The size of the header (usually 0x2020 bytes).
type_: u16The type of content (?).
version: u16The version of CIA.
certificate_chain_size: u32The size of the certificate chain in bytes.
ticket_size: u32The ticket size.
tmd_file_size: u32Tile metadata (TMD) file size in bytes.
meta_size: u32Meta size in bytes. 0 if no Meta is present.
content_size: u64The size of the Content.
content_index: Vec<u8>The content index (every byte corresponds to some Content).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CiaMetadata
impl RefUnwindSafe for CiaMetadata
impl Send for CiaMetadata
impl Sync for CiaMetadata
impl Unpin for CiaMetadata
impl UnsafeUnpin for CiaMetadata
impl UnwindSafe for CiaMetadata
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