Debian Codegraph @

docs/api_reference/C/DB_MULTIPLE_WRITE_INIT.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>DB_MULTIPLE_WRITE_INIT</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="dbt.html" title="Chapter 4.  The DBT Handle" />
11 <link rel="prev" href="DB_MULTIPLE_RECNO_NEXT.html" title="DB_MULTIPLE_RECNO_NEXT" />
12 <link rel="next" href="DB_MULTIPLE_WRITE_NEXT.html" title="DB_MULTIPLE_WRITE_NEXT" />
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">DB_MULTIPLE_WRITE_INIT</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="DB_MULTIPLE_RECNO_NEXT.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 4. 
26 The DBT Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="DB_MULTIPLE_WRITE_NEXT.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="DB_MULTIPLE_WRITE_INIT"></a>DB_MULTIPLE_WRITE_INIT</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 DB_MULTIPLE_WRITE_INIT(void *pointer, DBT *data); </pre>
44 <p>
45 Initialize a DBT containing a bulk buffer for use with the <a class="link" href="dbput.html#put_DB_MULTIPLE">DB_MULTIPLE</a> or <a class="link" href="dbput.html#put_DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a> flags to the <a class="xref" href="dbput.html" title="DB-&gt;put()">DB-&gt;put()</a> or <a class="xref" href="dbdel.html" title="DB-&gt;del()">DB-&gt;del()</a> methods.
46 </p>
47 <p>
48 This macro initializes an opaque pointer variable used for adding
49 records to a bulk buffer. Use this macro for buffers that will contain
50 either a data item per record (for use with
51 <a class="link" href="dbput.html#put_DB_MULTIPLE">DB_MULTIPLE</a>),
52 or key/data pairs, where the key is not a record number. For record
53 number keys, use <a class="link" href="DB_MULTIPLE_RECNO_WRITE_INIT.html" title="DB_MULTIPLE_RECNO_WRITE_INIT">DB_MULTIPLE_RECNO_WRITE_INIT</a>.
54 </p>
55 <div class="sect2" lang="en" xml:lang="en">
56 <div class="titlepage">
57 <div>
58 <div>
59 <h3 class="title"><a id="idp51166080"></a>Parameters</h3>
60 </div>
61 </div>
62 </div>
63 <div class="sect3" lang="en" xml:lang="en">
64 <div class="titlepage">
65 <div>
66 <div>
67 <h4 class="title"><a id="idp51166272"></a>pointer</h4>
68 </div>
69 </div>
70 </div>
71 <p>
72 The <span class="bold"><strong>pointer</strong></span> parameter
73 is an opaque pointer variable to be initialized.
74 </p>
75 </div>
76 <div class="sect3" lang="en" xml:lang="en">
77 <div class="titlepage">
78 <div>
79 <div>
80 <h4 class="title"><a id="idp51148480"></a>data</h4>
81 </div>
82 </div>
83 </div>
84 <p>
85 The <span class="bold"><strong>data</strong></span> parameter is
86 a <a class="link" href="dbt.html" title="Chapter 4.  The DBT Handle">DBT</a> structure that
87 has been initialized by the application with a buffer
88 to hold multiple records.
89 The <span class="bold"><strong>ulen</strong></span> field must be
90 set to the size of the buffer allocated by the
91 application, and must be a multiple of 4.
92 </p>
93 </div>
94 </div>
95 <div class="sect2" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h3 class="title"><a id="idp51164032"></a>Class</h3>
100 </div>
101 </div>
102 </div>
103 <p>
104 <a class="link" href="dbt.html" title="Chapter 4.  The DBT Handle">DBT</a>
105 </p>
106 </div>
107 <div class="sect2" lang="en" xml:lang="en">
108 <div class="titlepage">
109 <div>
110 <div>
111 <h3 class="title"><a id="idp51149440"></a>See Also</h3>
112 </div>
113 </div>
114 </div>
115 <p>
116 <a class="xref" href="dbt.html#dbtlist" title="DBT and Bulk Operations">DBT and Bulk Operations</a>
117 </p>
118 </div>
119 </div>
120 <div class="navfooter">
121 <hr />
122 <table width="100%" summary="Navigation footer">
123 <tr>
124 <td width="40%" align="left"><a accesskey="p" href="DB_MULTIPLE_RECNO_NEXT.html">Prev</a> </td>
125 <td width="20%" align="center">
126 <a accesskey="u" href="dbt.html">Up</a>
127 </td>
128 <td width="40%" align="right"> <a accesskey="n" href="DB_MULTIPLE_WRITE_NEXT.html">Next</a></td>
129 </tr>
130 <tr>
131 <td width="40%" align="left" valign="top">DB_MULTIPLE_RECNO_NEXT </td>
132 <td width="20%" align="center">
133 <a accesskey="h" href="index.html">Home</a>
134 </td>
135 <td width="40%" align="right" valign="top"> DB_MULTIPLE_WRITE_NEXT</td>
136 </tr>
137 </table>
138 </div>
139 </body>
140 </html>