pub struct PackageD2PreBL {
pub header: PackageHeader,
pub named_tags: Vec<PackageNamedTagEntry>,
/* private fields */
}Fields§
§header: PackageHeaderImplementations§
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
fn language(&self) -> PackageLanguage
fn platform(&self) -> PackagePlatform
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
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more