pub type WT_CONFIG_ITEM = __wt_config_item;Expand description
The configuration information returned by the WiredTiger configuration parsing functions in the WT_EXTENSION_API and the public API.
Aliased Type§
#[repr(C)]pub struct WT_CONFIG_ITEM {
pub str_: *const i8,
pub len: usize,
pub val: i64,
pub type_: u32,
}Fields§
§str_: *const i8The value of a configuration string.
Regardless of the type of the configuration string (boolean, int, list or string), the \c str field will reference the value of the configuration string.
The bytes referenced by \c str are not nul-terminated, use the \c len field instead of a terminating nul byte.
len: usizeThe number of bytes in the value referenced by \c str.
val: i64The numeric value of a configuration boolean or integer.
If the configuration string’s value is “true” or “false”, the \c val field will be set to 1 (true), or 0 (false).
If the configuration string can be legally interpreted as an integer, using the strtoll function rules as specified in ISO/IEC 9899:1990 (“ISO C90”), that integer will be stored in the \c val field.
type_: u32The type of value determined by the parser. In all cases, the \c str and \c len fields are set.