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