Example #1
0
        private static uint doPrefixCompare(
            IntPtr dbp, IntPtr dbtp1, IntPtr dbtp2)
        {
            DB            db   = new DB(dbp, false);
            DBT           dbt1 = new DBT(dbtp1, false);
            DBT           dbt2 = new DBT(dbtp2, false);
            BTreeDatabase btdb = (BTreeDatabase)(db.api_internal);

            return(btdb.PrefixCompare(
                       DatabaseEntry.fromDBT(dbt1), DatabaseEntry.fromDBT(dbt2)));
        }