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