prepare16 method

int prepare16(
  1. PtrSqlite3 db,
  2. String zSql,
  3. PtrPtrStmt ppStmt,
  4. PtrPtrVoid pzTail,
)
inherited

Implementation

int prepare16(PtrSqlite3 db, String zSql, PtrPtrStmt ppStmt, PtrPtrVoid pzTail) {
  final zSqlMeta = zSql._metaNativeUtf16();
  final ptrZSql = zSqlMeta.ptr;
  try {
    var result = _h_sqlite3_prepare16(db, ptrZSql, zSqlMeta.length, ppStmt, pzTail);
    if (pzTail.value.address - ptrZSql.address == zSqlMeta.length) {
      pzTail.value = ffi.nullptr;
    }
    return result;
  } finally {
    pkgffi.malloc.free(ptrZSql);
  }
}