create_collation method

int create_collation(
  1. PtrSqlite3 arg1,
  2. String zName,
  3. int eTextRep,
  4. PtrVoid pArg,
  5. PtrDefxCompare xCompare,
)
inherited

Implementation

int create_collation(
    PtrSqlite3 arg1, String zName, int eTextRep, PtrVoid pArg, PtrDefxCompare xCompare) {
  final zNameMeta = zName._metaNativeUtf8();
  final ptrZName = zNameMeta.ptr;
  try {
    return _h_sqlite3_create_collation(arg1, ptrZName, eTextRep, pArg, xCompare);
  } finally {
    pkgffi.malloc.free(ptrZName);
  }
}