pub type WT_MODIFY = __wt_modify;Expand description
A set of modifications for a value, including a pointer to new data and a length, plus a target offset in the value and an optional length of data in the value to be replaced.
WT_MODIFY structures do not need to be cleared before use.
Aliased Type§
#[repr(C)]pub struct WT_MODIFY {
pub data: __wt_item,
pub offset: usize,
pub size: usize,
}Fields§
§data: __wt_itemNew data. The size of the new data may be zero when no new data is provided.
offset: usizeThe zero-based byte offset in the value where the new data is placed.
If the offset is past the end of the value, padding bytes are appended to the value up to the specified offset. If the value is a string (value format \c S), the padding byte is a space. If the value is a raw byte array accessed using a WT_ITEM structure (value format \c u), the padding byte is a nul.
size: usizeThe number of bytes in the value to be replaced.
If the size is zero, no bytes from the value are replaced and the new data is inserted.
If the offset is past the end of the value, the size is ignored.
If the offset plus the size overlaps the end of the previous value, bytes from the offset to the end of the value are replaced and any remaining new data is appended.