Debian Codegraph @

docs/api_reference/CXX/mempset_pgcookie.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DbMpoolFile::set_pgcookie()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10 <link rel="up" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle" />
11 <link rel="prev" href="mempset_maxsize.html" title="DbMpoolFile::set_maxsize()" />
12 <link rel="next" href="mempset_priority.html" title="DbMpoolFile::set_priority()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbMpoolFile::set_pgcookie()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempset_maxsize.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 The DbMpoolFile Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="mempset_priority.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="mempset_pgcookie"></a>DbMpoolFile::set_pgcookie()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbMpoolFile::set_pgcookie(DBT *pgcookie); </pre>
45 <p>
46 The <code class="methodname">DbMpoolFile::set_pgcookie()</code> method specifies a byte string that
47 is provided to the functions registered to do input or output
48 processing of the file's pages as they are read from or written to,
49 the backing filesystem store. (See the
50 <a class="xref" href="mempregister.html" title="DbEnv::memp_register()">DbEnv::memp_register()</a>
51 documentation for more information.)
52 </p>
53 <p>
54 The <code class="methodname">DbMpoolFile::set_pgcookie()</code> method configures a file in the
55 cache, not only operations performed using the specified
56 <a class="link" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle">DbMpoolFile</a> handle.
57 </p>
58 <p>
59 The <code class="methodname">DbMpoolFile::set_pgcookie()</code> method may not be called after the
60 <a class="xref" href="mempfopen.html" title="DbMpoolFile::open()">DbMpoolFile::open()</a>
61 method is called. If the file is already open in the cache when
62 <a class="xref" href="mempfopen.html" title="DbMpoolFile::open()">DbMpoolFile::open()</a> is
63 called, the information specified to <code class="methodname">DbMpoolFile::set_pgcookie()</code>
64 will replace the existing information.
65 </p>
66 <p>
67 The <code class="methodname">DbMpoolFile::set_pgcookie()</code> <span>
68
69 <span>
70 method either returns a non-zero error value or throws an
71 exception that encapsulates a non-zero error value on
72 failure, and returns 0 on success.
73 </span>
74 </span>
75 </p>
76 <div class="sect2" lang="en" xml:lang="en">
77 <div class="titlepage">
78 <div>
79 <div>
80 <h3 class="title"><a id="idp9099344"></a>Parameters</h3>
81 </div>
82 </div>
83 </div>
84 <div class="sect3" lang="en" xml:lang="en">
85 <div class="titlepage">
86 <div>
87 <div>
88 <h4 class="title"><a id="idp9098440"></a>pgcookie</h4>
89 </div>
90 </div>
91 </div>
92 <p>
93 The <span class="bold"><strong>pgcookie</strong></span> parameter is a byte
94 string provided to the functions registered to do input or output
95 processing of the file's pages.
96 </p>
97 </div>
98 </div>
99 <div class="sect2" lang="en" xml:lang="en">
100 <div class="titlepage">
101 <div>
102 <div>
103 <h3 class="title"><a id="idp9100200"></a>Class</h3>
104 </div>
105 </div>
106 </div>
107 <p>
108 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>, <a class="link" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle">DbMpoolFile</a>
109 </p>
110 </div>
111 <div class="sect2" lang="en" xml:lang="en">
112 <div class="titlepage">
113 <div>
114 <div>
115 <h3 class="title"><a id="idp9098544"></a>See Also</h3>
116 </div>
117 </div>
118 </div>
119 <p>
120 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
121 </p>
122 </div>
123 </div>
124 <div class="navfooter">
125 <hr />
126 <table width="100%" summary="Navigation footer">
127 <tr>
128 <td width="40%" align="left"><a accesskey="p" href="mempset_maxsize.html">Prev</a> </td>
129 <td width="20%" align="center">
130 <a accesskey="u" href="memp.html">Up</a>
131 </td>
132 <td width="40%" align="right"> <a accesskey="n" href="mempset_priority.html">Next</a></td>
133 </tr>
134 <tr>
135 <td width="40%" align="left" valign="top">DbMpoolFile::set_maxsize() </td>
136 <td width="20%" align="center">
137 <a accesskey="h" href="index.html">Home</a>
138 </td>
139 <td width="40%" align="right" valign="top"> DbMpoolFile::set_priority()</td>
140 </tr>
141 </table>
142 </div>
143 </body>
144 </html>