API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_pointer

function sqlite3_result_pointer(
  deps: SqliteWasmDep,
): (
  context: SqliteContextPtr,
  pPtr: 0 | WasmPtr,
  zPType: CStringPtr,
  xDestructor: 0 | SqliteFunctionPtr,
) => void;

Defined in: packages/sqlite-wasm/src/CApi.ts:2846

Sets an application-defined function's result to an SQL NULL carrying pPtr, which sqlite3_value_pointer returns for an equal type name. SQLite keeps zPType itself, so it must outlive the value, and calls a non-NULL xDestructor with pPtr when done with it.

Wasm type v(iiii). Signature ["sqlite3_result_pointer", undefined, "sqlite3_context*", "*", "string:static", "*"] from SQLite's table.

See https://sqlite.org/c3ref/result_blob.html.