pub struct PkgEntry { /* private fields */ }Implementations§
Source§impl PkgEntry
impl PkgEntry
pub const RAW_SIZE: usize
Sourcepub fn read(raw: &[u8]) -> Result<Self, EntryError>
pub fn read(raw: &[u8]) -> Result<Self, EntryError>
Reads an entry from raw bytes.
Sourcepub const fn is_encrypted(&self) -> bool
pub const fn is_encrypted(&self) -> bool
Returns true if this entry is encrypted.
Sourcepub const fn data_offset(&self) -> usize
pub const fn data_offset(&self) -> usize
Returns the data offset within the PKG file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PkgEntry
impl RefUnwindSafe for PkgEntry
impl Send for PkgEntry
impl Sync for PkgEntry
impl Unpin for PkgEntry
impl UnwindSafe for PkgEntry
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