Skip to main content

compiled_slot_count

Function compiled_slot_count 

Source
pub const fn compiled_slot_count() -> usize
Expand description

Number of duckdb_ext_api_v1 slots this extension was compiled against.

Determined from the size of the duckdb_ext_api_v1 struct in the resolved libduckdb-sys bindings. Every field is a nullable function pointer, so the struct is exactly slots * size_of::<*const c_void>() bytes.