Struct destiny_pkg::PackageD2PreBL
source · pub struct PackageD2PreBL {
pub header: PackageHeader,
pub named_tags: Vec<PackageNamedTagEntry>,
/* private fields */
}
Fields§
§header: PackageHeader
Implementations§
source§impl PackageD2PreBL
impl PackageD2PreBL
pub fn open(path: &str) -> Result<PackageD2PreBL>
pub fn from_reader<R: ReadSeek + 'static>( path: &str, reader: R ) -> Result<PackageD2PreBL>
Trait Implementations§
source§impl Package for PackageD2PreBL
impl Package for PackageD2PreBL
fn endianness(&self) -> Endian
fn pkg_id(&self) -> u16
fn patch_id(&self) -> u16
source§fn hash64_table(&self) -> Vec<UHashTableEntry>
fn hash64_table(&self) -> Vec<UHashTableEntry>
Every hash64 in this package.
Does not apply to Destiny 1
fn entries(&self) -> &[UEntryHeader]
fn entry(&self, index: usize) -> Option<UEntryHeader>
source§fn get_block(&self, index: usize) -> Result<Arc<Vec<u8>>>
fn get_block(&self, index: usize) -> Result<Arc<Vec<u8>>>
Gets/reads a specific block from the file.
It’s recommended that the implementation caches blocks to prevent re-reads
fn language(&self) -> PackageLanguage
source§fn read_tag(&self, tag: TagHash) -> Result<Vec<u8>>
fn read_tag(&self, tag: TagHash) -> Result<Vec<u8>>
Reads the entire specified entry’s data
Tag needs to be in this package
fn get_all_by_reference(&self, reference: u32) -> Vec<(usize, UEntryHeader)>
fn get_all_by_type( &self, etype: u8, esubtype: Option<u8> ) -> Vec<(usize, UEntryHeader)>
impl Send for PackageD2PreBL
impl Sync for PackageD2PreBL
Auto Trait Implementations§
impl !Freeze for PackageD2PreBL
impl !RefUnwindSafe for PackageD2PreBL
impl Unpin for PackageD2PreBL
impl !UnwindSafe for PackageD2PreBL
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