示例#1
0
 /// <summary>
 /// store multiple contiguous data elements in a single request.
 /// May only be used with MDB_DUPFIXED.
 /// </summary>
 /// <param name="data">This span must be pinned or stackalloc memory</param>
 public static MDBResultCode mdb_cursor_put(IntPtr cursor, ref MDBValue key, ref Span <MDBValue> data,
                                            CursorPutOptions flags)
 {
     ref var dataRef = ref MemoryMarshal.GetReference(data);
示例#2
0
 public static MDBResultCode mdb_del(IntPtr txn, uint dbi, MDBValue key)
 {
     return(mdb_del(txn, dbi, ref key, IntPtr.Zero));
 }
示例#3
0
 public static MDBResultCode mdb_cursor_put(IntPtr cursor, MDBValue key, MDBValue value, CursorPutOptions flags)
 {
     return(mdb_cursor_put(cursor, ref key, ref value, flags));
 }
示例#4
0
 public static MDBResultCode mdb_put(IntPtr txn, uint dbi, MDBValue key, MDBValue value, PutOptions flags)
 {
     return(mdb_put(txn, dbi, ref key, ref value, flags));
 }
示例#5
0
 public static MDBResultCode mdb_del(IntPtr txn, uint dbi, MDBValue key, MDBValue value)
 {
     return(mdb_del(txn, dbi, ref key, ref value));
 }
示例#6
0
 public static extern MDBResultCode mdb_put(IntPtr txn, uint dbi, ref MDBValue key, ref MDBValue data, PutOptions flags);
示例#7
0
 public static extern MDBResultCode mdb_del(IntPtr txn, uint dbi, ref MDBValue key, IntPtr data);
示例#8
0
 public static extern MDBResultCode mdb_get(IntPtr txn, uint dbi, ref MDBValue key, out MDBValue data);
示例#9
0
 public static extern MDBResultCode mdb_cursor_put(IntPtr cursor, ref MDBValue key, MDBValue[] value, CursorPutOptions flags);
示例#10
0
 public static extern MDBResultCode mdb_cursor_get(IntPtr cursor, ref MDBValue key, ref MDBValue data, CursorOperation op);
示例#11
0
 public static MDBResultCode mdb_cursor_get(IntPtr cursor, ref MDBValue key, ref MDBValue value, CursorOperation op)
 {
     return(LmdbMethods.mdb_cursor_get(cursor, ref key, ref value, op));
 }
示例#12
0
 public static MDBResultCode mdb_get(IntPtr txn, uint dbi, ref MDBValue key, out MDBValue value)
 {
     return(LmdbMethods.mdb_get(txn, dbi, ref key, out value));
 }