pub struct BundleNode {
pub path: String,
pub offset: u64,
pub size: u64,
pub flags: u32,
}Expand description
One file in a bundle.
Fields§
§path: StringThe file’s path in the bundle (BuildPlayer-Level_5.sharedAssets, Resources/unity_builtin_extra).
offset: u64Where the file starts in the blocks’ decompressed bytes.
size: u64The file’s size in bytes.
flags: u32The node’s flags: NODE_SERIALIZED (4) for a SerializedFile, 0 for a stream file.
Implementations§
Source§impl BundleNode
impl BundleNode
Sourcepub fn is_serialized(&self) -> bool
pub fn is_serialized(&self) -> bool
Whether the node is a SerializedFile (its flags say so).
Trait Implementations§
Source§impl Clone for BundleNode
impl Clone for BundleNode
Source§impl Debug for BundleNode
impl Debug for BundleNode
impl Eq for BundleNode
Source§impl PartialEq for BundleNode
impl PartialEq for BundleNode
impl StructuralPartialEq for BundleNode
Auto Trait Implementations§
impl Freeze for BundleNode
impl RefUnwindSafe for BundleNode
impl Send for BundleNode
impl Sync for BundleNode
impl Unpin for BundleNode
impl UnsafeUnpin for BundleNode
impl UnwindSafe for BundleNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.