API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_blob
function sqlite3_result_blob(
deps: SqliteWasmDep,
): (
context: SqliteContextPtr,
value: 0 | WasmPtr,
n: number,
destructor: SqliteDestructor,
) => void;
Defined in: packages/sqlite-wasm/src/CApi.ts:2800
Sets an application-defined function's result to n bytes. A NULL address sets SQL NULL, as for sqlite3_bind_blob, so an empty blob needs a non-NULL address or sqlite3_result_zeroblob.
Wasm type v(iiii). Signature ["sqlite3_result_blob", undefined, "sqlite3_context*", "*", "int", "*"] from SQLite's table.