deserialize method

int deserialize(
  1. PtrSqlite3 db,
  2. String zSchema,
  3. Pointer<Uint8> pData,
  4. int szDb,
  5. int szBuf,
  6. int arg1,
)
inherited

Implementation

int deserialize(
    PtrSqlite3 db, String zSchema, ffi.Pointer<ffi.Uint8> pData, int szDb, int szBuf, int arg1) {
  if (libVersionNumber < 3023000) {
    throw dbsql.DatabaseException('API sqlite3_deserialize is not available before 3.23.0');
  }
  final zSchemaMeta = zSchema._metaNativeUtf8();
  final ptrZSchema = zSchemaMeta.ptr;
  try {
    return _h_sqlite3_deserialize!(db, ptrZSchema, pData, szDb, szBuf, arg1);
  } finally {
    pkgffi.malloc.free(ptrZSchema);
  }
}