Library Version 12.1.6.0

DB_STREAM->size()
Prev | Chapter 13. Binary Large Objects | Next

## DB_STREAM->size()

    #include <db.h>

    int
    DB_STREAM->size(DB_STREAM *dbs, db_off_t *size, u_int32_t flags);

The `DB_STREAM->size()` method returns the size of the BLOB in bytes.

Unless otherwise specified, the `DB_STREAM->size()` method returns a non-zero error value on failure and 0 on success.

### Parameters

#### size

The size parameter references memory into which the size of the BLOB is copied.

#### flags

The flags parameter must be set to 0.

### Errors

The `DB_STREAM->size()` method may fail and return one of the following non-zero errors:

#### EINVAL

An invalid flag value or parameter was specified.

### Class

DB_STREAM

### See Also

BLOBs and Related Methods

Prev | Up | Next
DB_STREAM->read() | Home | DB_STREAM->write()