#[repr(C)]pub struct DeltaHeader {
pub magic: u32,
pub version: u16,
pub encoding: u8,
pub _pad: u8,
pub base_cluster_id: u32,
pub affected_count: u32,
pub delta_size: u64,
pub delta_hash: [u8; 32],
pub _reserved: [u8; 8],
}Expand description
64-byte header for DELTA_SEG payloads.
Follows the standard 64-byte SegmentHeader. All multi-byte fields are
little-endian on the wire.
Fields§
§magic: u32Magic: DELTA_MAGIC (0x5256444C, “RVDL”).
version: u16DeltaHeader format version (currently 1).
encoding: u8Delta encoding strategy (see DeltaEncoding).
_pad: u8Padding (must be zero).
base_cluster_id: u32Cluster ID that this delta applies to.
affected_count: u32Number of vectors affected by this delta.
delta_size: u64Size of the delta payload in bytes.
delta_hash: [u8; 32]SHAKE-256-256 hash of the delta payload.
_reserved: [u8; 8]Reserved (must be zero).
Implementations§
Trait Implementations§
Source§impl Clone for DeltaHeader
impl Clone for DeltaHeader
Source§fn clone(&self) -> DeltaHeader
fn clone(&self) -> DeltaHeader
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 moreSource§impl Debug for DeltaHeader
impl Debug for DeltaHeader
impl Copy for DeltaHeader
Auto Trait Implementations§
impl Freeze for DeltaHeader
impl RefUnwindSafe for DeltaHeader
impl Send for DeltaHeader
impl Sync for DeltaHeader
impl Unpin for DeltaHeader
impl UnwindSafe for DeltaHeader
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