Пример #1
0
 /// <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));
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /// <summary>Equality comparison.</summary>
 public static bool Equals(KeyDataPair x, KeyDataPair y)
 {
     return(x.Key == y.Key && x.Data == y.Data);
 }