pub struct RawKeyValue {
pub name_len: u16,
pub data_size_raw: u32,
pub data_offset_raw: u32,
pub data_type: ValueType,
pub flags: ValueFlags,
pub name_raw: Vec<u8>,
}Expand description
Raw VK (Key Value) cell data — parsed from bytes after the cell size field.
Fixed header: 20 bytes (0x14) + variable-length value name.
Fields§
§name_len: u16§data_size_raw: u32§data_offset_raw: u32§data_type: ValueType§flags: ValueFlags§name_raw: Vec<u8>Implementations§
Source§impl RawKeyValue
impl RawKeyValue
pub const HEADER_SIZE: usize = 0x14
pub fn parse(data: &[u8]) -> Option<Self>
pub fn is_resident(&self) -> bool
pub fn data_size(&self) -> u32
pub fn data_offset(&self) -> CellOffset
pub fn inline_data(&self) -> Vec<u8> ⓘ
pub fn value_name(&self) -> String
Trait Implementations§
Source§impl Clone for RawKeyValue
impl Clone for RawKeyValue
Source§fn clone(&self) -> RawKeyValue
fn clone(&self) -> RawKeyValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawKeyValue
impl RefUnwindSafe for RawKeyValue
impl Send for RawKeyValue
impl Sync for RawKeyValue
impl Unpin for RawKeyValue
impl UnsafeUnpin for RawKeyValue
impl UnwindSafe for RawKeyValue
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