Library Version 18.1.40

DB_MULTIPLE_RECNO_WRITE_INIT
Prev | Chapter 4. The DBT Handle | Next

## DB_MULTIPLE_RECNO_WRITE_INIT

    #include <db.h>

    DB_MULTIPLE_RECNO_WRITE_INIT(void *pointer, DBT *data);

Initialize a DBT containing a bulk buffer for use with the DB_MULTIPLE or DB_MULTIPLE_KEY flags to the DB->put() or DB->del() methods, if the buffer will contain record number keys.

This macro initializes an opaque pointer variable used for adding records to a bulk buffer. Use this macro for buffers that will contain either a list of record numbers (for use with DB_MULTIPLE), or key/data pairs, where the key is a record number.

### Parameters

#### pointer

The pointer parameter is an opaque pointer variable to be initialized.

#### data

The data parameter is a DBT structure that has been initialized by the application with a buffer to hold multiple records. The ulen field must be set to the size of the buffer allocated by the application, which must be a multiple of 4.

### Class

DBT

### See Also

DBT and Bulk Operations

Prev | Up | Next
DB_MULTIPLE_KEY_RESERVE_NEXT | Home | DB_MULTIPLE_RECNO_WRITE_NEXT