pub struct PatchHeader {
pub patch_data_size: u32,
pub size_before: u32,
pub size_after: u32,
pub md5_before: [u8; 16],
pub md5_after: [u8; 16],
pub patch_type: PatchType,
pub xfrm_data_size: u32,
}Expand description
PTCH file header containing all metadata
Fields§
§patch_data_size: u32Total size of patch data (decompressed)
size_before: u32Size of original file before patching
size_after: u32Size of file after patching
md5_before: [u8; 16]MD5 hash of original file (before patch)
md5_after: [u8; 16]MD5 hash of patched file (after patch)
patch_type: PatchTypeType of patch (COPY or BSD0)
xfrm_data_size: u32Size of XFRM block data (excludes 12-byte XFRM header)
Implementations§
Source§impl PatchHeader
impl PatchHeader
Sourcepub const HEADER_SIZE: usize
pub const HEADER_SIZE: usize
Total header size in bytes (PTCH + MD5 + XFRM headers)
Trait Implementations§
Source§impl Clone for PatchHeader
impl Clone for PatchHeader
Source§fn clone(&self) -> PatchHeader
fn clone(&self) -> PatchHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PatchHeader
impl RefUnwindSafe for PatchHeader
impl Send for PatchHeader
impl Sync for PatchHeader
impl Unpin for PatchHeader
impl UnwindSafe for PatchHeader
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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