/// <summary> /// Move cursor to first data position of next key and get the record (key and data). /// </summary> /// <param name="entry"></param> /// <returns><c>true</c> if next key exists, false otherwise.</returns> public bool GetNextByKey(out KeyDataPair entry) { return(Get(out entry, DbCursorOp.MDB_NEXT_NODUP)); }
/// <summary> /// Move cursor to last data position of previous key and get the record (key and data). /// </summary> /// <param name="entry"></param> /// <returns><c>true</c> if previous key exists, false otherwise.</returns> public bool GetPreviousByKey(out KeyDataPair entry) { return(Get(out entry, DbCursorOp.MDB_PREV_NODUP)); }
/// <summary>Equality comparison.</summary> public static bool Equals(KeyDataPair x, KeyDataPair y) { return(x.Key == y.Key && x.Data == y.Data); }