Skip to main content

drvector_t

Type Alias drvector_t 

Source
pub type drvector_t = _drvector_t;
Expand description

The storage for a vector.

Aliased Type§

#[repr(C)]
pub struct drvector_t { pub entries: u32, pub capacity: u32, pub array: *mut *mut c_void, pub synch: i8, pub lock: *mut c_void, pub free_data_func: Option<unsafe extern "C" fn(*mut c_void)>, }

Fields§

§entries: u32

< The index at which drvector_append() will write.

§capacity: u32

< The size of \p array.

§array: *mut *mut c_void

< The dynamically allocated storage for the vector entries.

§synch: i8

< Whether to automatically synchronize each operation.

§lock: *mut c_void

< The lock used for synchronization.

§free_data_func: Option<unsafe extern "C" fn(*mut c_void)>

< The routine called when freeing each entry.