DB->get_byteswapped API Ref

#include <db.h>

int DB->get_byteswapped(DB *db, int *isswapped);


Description: DB->get_byteswapped

The DB->get_byteswapped method returns if the underlying database files were created on an architecture of the same byte order as the current one, or if they were not (that is, big-endian on a little-endian machine, or vice versa). This information may be used to determine whether application data needs to be adjusted for this architecture or not.

The DB->get_byteswapped method may not be called before the DB->open method is called.

The DB->get_byteswapped method returns a non-zero error value on failure and 0 on success.

Parameters
isswapped

Errors

The DB->get_byteswapped method may fail and return one of the following non-zero errors:


EINVAL


Class DB
See Also Databases and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.