func (cursor *Cursor) Count() (uint64, error) { var _size C.size_t ret := C.mdb_cursor_count(cursor._cursor, &_size) if ret != SUCCESS { return 0, Errno(ret) } return uint64(_size), nil }
// Count returns the number of duplicates for the current key. // // See mdb_cursor_count. func (c *Cursor) Count() (uint64, error) { var _size C.size_t ret := C.mdb_cursor_count(c._c, &_size) if ret != success { return 0, operrno("mdb_cursor_count", ret) } return uint64(_size), nil }