# WBT_PACKET_BITMAP_SIZE

## C Specification

      #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 necessary for receive processing of the `WBT_GetBlock` function.

Use this function when securing a static buffer during compile. The required bitmap buffer size depends on the communication packet size, so use the `WBT_CalcPacketbitmapSize` function to return the size dynamically during execution.

## Members

The details of each argument are as follows.

Member | Meaning
`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

09/21/2004 Initial version