# WBT_PACKET_BITMAP_SIZE

## Definitions

  `#include <nitro/wbt.h>`
  `#define WBT_PACKET_BITMAP_SIZE(block_size, packet_size) \
  (((((block_size) + ((packet_size) - WBT_PACKET_SIZE_MIN) - 1)/((packet_size) - WBT_PACKET_SIZE_MIN)) + 31 )/sizeof(u32)) * sizeof(u32)`

## Description

This function calculates the size of the bitmap buffer for receive archive record necessary for receive processing of the `WBT_GetBlock` function. Use this function when securing a static buffer during compile. The size needed for the bitmap buffer to receive archive records depends on the communication packet size, so use the `WBT_CalcPacketbitmapSize` function to return the size dynamically during execution.
The details of each argument are as follows.

block_size | Specifies the data block size to receive.
packet_size | Specifies the MP communication packet size allocated to WBT during execution.

## See Also

`WBT_CalcPacketbitmapSize, WBT_GetBlock`

## Revision History

02/18/2005 Changed description of packet bitmap to "receive archive record bitmap buffer"
09/21/2004 Initial version