3
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
4
<!--All rights reserved.-->
5
<!--See the file LICENSE for redistribution information.-->
8
<title>Berkeley DB: db is_byteswapped</title>
9
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
10
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
13
<a name="2"><!--meow--></a>
14
<table width="100%"><tr valign=top>
16
<h1><i>db</i> <b>is_byteswapped</b></h1>
19
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
23
<h3><pre>db is_byteswapped
26
<p>The <i>db</i> <b>is_byteswapped</b> command returns 0 if the underlying database
27
files were created on an architecture of the same byte order as the
28
current one, and 1 if they were not (that is, big-endian on a little-endian
29
machine, or vice versa). This value may be used to determine if application
30
data needs to be adjusted for this architecture or not.
31
<p>In the case of error, a Tcl error is thrown.
33
<table width="100%"><tr><td><br></td><td align=right>
34
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
36
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>