#include <nitro/wbt.h>
int WBT_CalcPacketbitmapSize(int block_size);
This calculates and acquires the receive bitmap buffer size that is required when receiving a specified size of data with the WBT_GetBlock function.
This function can only be used:
WBT_InitParent function;WBT_RequestSync function. If the transmission packet size and the receive block data size are already known, the WBT_PACKET_BITMAP_SIZE macro obtains the same results.
block_size |
The size of the data to be received. |
Returns the bitmap buffer size required to receive the corresponding amount of data.
WBT_GetBlock,
WBT_PACKET_BITMAP_SIZE
09/21/2004 Initial version