WT_ITEM

Type Alias WT_ITEM 

Source
pub type WT_ITEM = __wt_item;
Expand description

A raw item of data to be managed, including a pointer to the data and a length.

WT_ITEM structures do not need to be cleared before use.

Aliased Type§

#[repr(C)]
pub struct WT_ITEM { pub data: *const c_void, pub size: usize, pub mem: *mut c_void, pub memsize: usize, pub flags: u32, }

Fields§

§data: *const c_void

The memory reference of the data item.

For items returned by a WT_CURSOR, the pointer is only valid until the next operation on that cursor. Applications that need to keep an item across multiple cursor operations must make a copy.

§size: usize

The number of bytes in the data item.

The maximum length of a single column stored in a table is not fixed (as it partially depends on the underlying file configuration), but is always a small number of bytes less than 4GB.

§mem: *mut c_void

Managed memory chunk (internal use).

§memsize: usize

Managed memory size (internal use).

§flags: u32