Struct inspect_format::PayloadFields
source · pub struct PayloadFields;
Expand description
Represents the payload of inspect VMO Blocks (except for EXTENT
and NAME
).
Implementations§
source§impl PayloadFields
impl PayloadFields
sourcepub fn property_total_length<T: Deref<Target = Q>, Q: ReadBytes>(
b: &Block<T>
) -> u32
pub fn property_total_length<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T> ) -> u32
Only for BUFFER
or STRING_REFERENCE
blocks. The total size of the buffer.
sourcepub fn set_property_total_length<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u32
)
pub fn set_property_total_length<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32 )
Only for BUFFER
or STRING_REFERENCE
blocks. The total size of the buffer.
sourcepub fn property_extent_index<T: Deref<Target = Q>, Q: ReadBytes>(
b: &Block<T>
) -> u32
pub fn property_extent_index<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T> ) -> u32
Only for BUFFER
blocks. The index of the first EXTENT
block of this buffer.
sourcepub fn set_property_extent_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u32
)
pub fn set_property_extent_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32 )
Only for BUFFER
blocks. The index of the first EXTENT
block of this buffer.
sourcepub fn property_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
pub fn property_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
Only for BUFFER
blocks. The buffer flags of this block indicating its display format.
0: utf-8 string
1: binary array
sourcepub fn set_property_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u8
)
pub fn set_property_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8 )
Only for BUFFER
blocks. The buffer flags of this block indicating its display format.
0: utf-8 string
1: binary array
sourcepub fn array_entry_type<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
pub fn array_entry_type<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
Only for ARRAY_VALUE
blocks. The type of each entry in the array (int, uint, double).
0: Int
1: Uint
2: Double
sourcepub fn set_array_entry_type<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u8
)
pub fn set_array_entry_type<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8 )
Only for ARRAY_VALUE
blocks. The type of each entry in the array (int, uint, double).
0: Int
1: Uint
2: Double
sourcepub fn array_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
pub fn array_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
Only for ARRAY_VALUE
blocks. The display format of the block (default, linear histogram,
exponential histogram)
0: Regular array
1: Linear histogram
2: Exponential histogram
sourcepub fn set_array_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u8
)
pub fn set_array_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8 )
Only for ARRAY_VALUE
blocks. The display format of the block (default, linear histogram,
exponential histogram)
0: Regular array
1: Linear histogram
2: Exponential histogram
sourcepub fn array_slots_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
pub fn array_slots_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
Only for ARRAY_VALUE
blocks. The nmber of entries in the array.
sourcepub fn set_array_slots_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u8
)
pub fn set_array_slots_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8 )
Only for ARRAY_VALUE
blocks. The nmber of entries in the array.
sourcepub fn content_index<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u32
pub fn content_index<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u32
Only for LINK_VALUE
blocks. Index of the content of this link (as a NAME
node)
sourcepub fn set_content_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u32
)
pub fn set_content_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32 )
Only for LINK_VALUE
blocks. Index of the content of this link (as a NAME
node)
sourcepub fn disposition_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
pub fn disposition_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8
Only for LINK_VALUE
. Instructs readers whether to use child or inline disposition.
0: child
1: inline
sourcepub fn set_disposition_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u8
)
pub fn set_disposition_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8 )
Only for LINK_VALUE
. Instructs readers whether to use child or inline disposition.
0: child
1: inline
source§impl PayloadFields
impl PayloadFields
sourcepub fn numeric_value<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64
pub fn numeric_value<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64
Only for INT/UINT/DOUBLE_VALUE
blocks. The numeric value of the block, this number has to
be casted to its type for INT
and DOUBLE
blocks.
sourcepub fn set_numeric_value<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u64
)
pub fn set_numeric_value<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64 )
Only for INT/UINT/DOUBLE_VALUE
blocks. The numeric value of the block, this number has to
be casted to its type for INT
and DOUBLE
blocks.
sourcepub fn header_generation_count<T: Deref<Target = Q>, Q: ReadBytes>(
b: &Block<T>
) -> u64
pub fn header_generation_count<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T> ) -> u64
Only for the HEADER
block. The generation count of the header, used for implementing
locking.
sourcepub fn set_header_generation_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u64
)
pub fn set_header_generation_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64 )
Only for the HEADER
block. The generation count of the header, used for implementing
locking.
sourcepub fn child_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64
pub fn child_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64
Only for NODE blocks
sourcepub fn set_child_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>(
b: &mut Block<T>,
value: u64
)
pub fn set_child_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64 )
Only for NODE blocks