Library Version 11.2.5.3

Db::get_heapsize()
Prev | Chapter 2. The Db Handle | Next

## Db::get_heapsize()

    #include <db_cxx.h>

    int
    Db::get_heapsize(u_int32_t *gbytesp, u_int32_t *bytesp);

Used when the underlying database is configured to use the Heap access method. This method returns the maximum size of the database's heap file. This value may be set using the Db::set_heapsize() method.

The `Db::get_heapsize()` method may be called at any time during the life of the application.

The `Db::get_heapsize()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### gbytesp

The gbytesp parameter references memory into which is copied the maximum number of gigabytes in the heap.

#### bytesp

The bytesp parameter references memory into which is copied the additional bytes in the heap.

### Class

Db

### See Also

Database and Related Methods, Db::set_heapsize()

Prev | Up | Next
Db::get_h_nelem() | Home | Db::get_heap_regionsize()