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_CalcPacketbitmapSize</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">WBT_CalcPacketbitmapSize <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 12<h2>Syntax</h2> 13<dl> 14 <dd> 15<CODE>#include <nitro/wbt.h></CODE><BR> 16 <BR> 17 <CODE>int WBT_CalcPacketbitmapSize(int block_size);</CODE><br> 18 <br> 19 </dd> 20</dl> 21<h2>Arguments</h2> 22<p> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26 <TD width="13%"><CODE>block_size</CODE></TD> 27 <TD width="87%">Size of the data to be received.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31</p> 32<h2>Return Values</h2> 33<p>Returns the receive archive record bitmap buffer size required to receive the corresponding amount of data.</p> 34<H2>Description</H2> 35<p>Calculates and acquires the size required for the bitmap buffer for receive history records when receiving a specified data size with the <A href="../command/WBT_GetBlock.html"><code>WBT_GetBlock</code></A> function.<br><br> Parents can only use this function after the <A href="../init/WBT_InitParent.html"><code>WBT_InitParent</code></A> function, and children can only use this function after the <A href="../command/WBT_RequestSync.html"><code>WBT_RequestSync</code></A> function. If the transmission packet size and the receive block data size are already known, the <A href="../wbt_packet_bitmap_size.html"><CODE>WBT_PACKET_BITMAP_SIZE</CODE></A> macro obtains the same results. <br> 36</p> 37<br> 38<H2>See Also</H2> 39<A href="../command/WBT_GetBlock.html"><code>WBT_GetBlock</code></A><br> <A href="../wbt_packet_bitmap_size.html"><code>WBT_PACKET_BITMAP_SIZE</code></A> 40<H2>Revision History</H2> 41<P> 422005/02/18 Changed description of packet bitmap to "receive archive record bitmap buffer."<br /> 2004/09/21 Initial version. 43</P> 44<hr><p>CONFIDENTIAL</p></body> 45</html>