mdb_cursor_count function

int mdb_cursor_count(
  1. Pointer<MDB_cursor> cursor,
  2. Pointer<mdb_size_t> countp
)

@brief Return count of duplicates for current key.

This call is only valid on databases that support sorted duplicate data items #MDB_DUPSORT. @paramin cursor A cursor handle returned by #mdb_cursor_open() @paramout countp Address where the count will be stored @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - cursor is not initialized, or an invalid parameter was specified.

Implementation

@ffi.FfiNative<
    ffi.Int Function(
        ffi.Pointer<MDB_cursor>, ffi.Pointer<mdb_size_t>)>('mdb_cursor_count')
external int mdb_cursor_count(
  ffi.Pointer<MDB_cursor> cursor,
  ffi.Pointer<mdb_size_t> countp,
);