MCPcopy Create free account
hub / github.com/asg017/sqlite-loadable-rs / pointer_destroy

Function pointer_destroy

src/api.rs:360–362  ·  view source on GitHub ↗
(pointer: *mut c_void)

Source from the content-addressed store, hash-verified

358}
359
360unsafe extern "C" fn pointer_destroy<T>(pointer: *mut c_void) {
361 drop(Box::from_raw(pointer.cast::<T>()))
362}
363
364/// [sqlite3_result_pointer](https://www.sqlite.org/bindptr.html)
365pub fn result_pointer<T>(context: *mut sqlite3_context, name: &[u8], object: T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected