1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>WBT_PACKET_BITMAP_SIZE</title>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">WBT_PACKET_BITMAP_SIZE</h1>
12<h2>Definition</h2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/wbt.h&gt;</CODE><BR>
16  <BR>
17  <CODE>#define WBT_PACKET_BITMAP_SIZE(block_size, packet_size) \<br>
18  (((((block_size) + ((packet_size) - <A href="wbt_packet_size_min_const.html">WBT_PACKET_SIZE_MIN</A>) - 1)/((packet_size) - <A href="wbt_packet_size_min_const.html">WBT_PACKET_SIZE_MIN</A>)) + 31 )/sizeof(u32))  * sizeof(u32)</CODE><br>
19  <br>
20  </dd>
21</dl>
22<H2>Description</H2>
23<P>Calculates the size of the bitmap buffer for receive history records. This buffer must be of a certain size required for the reception processing done by the <a href="command/WBT_GetBlock.html"><CODE>WBT_GetBlock</CODE></a> function. Use this function when securing a static buffer during compile. <br>The size needed for the bitmap buffer for receive history records depends on the communication packet size, so use the <A href="common/WBT_CalcPacketbitmapSize.html"><CODE>WBT_CalcPacketbitmapSize</CODE></A> function to return the size dynamically at run time.<br><br> The details of each argument are as follows.<BR>
24<TABLE border="0">
25  <TBODY>
26    <TR>
27      <TD><CODE>block_size</CODE></TD>
28      <TD>Data block size to receive.</TD>
29    </TR>
30    <TR>
31      <TD><CODE>packet_size</CODE></TD>
32      <TD>MP communication packet size allocated to WBT during execution.</TD>
33    </TR>
34  </TBODY>
35</TABLE>
36</P>
37<h2>See Also</h2>
38<p><A href="common/WBT_CalcPacketbitmapSize.html"><CODE>WBT_CalcPacketbitmapSize</CODE></A><BR> <a href="command/WBT_GetBlock.html"><CODE>WBT_GetBlock</CODE></a></p>
39<H2>Revision History</H2>
40<P>
412005/02/18 Changed description of packet bitmap to &quot;receive archive record bitmap buffer.&quot;<br /> 2004/09/21 Initial version.
42</P>
43<hr><p>CONFIDENTIAL</p></body>
44</html>
45