WBT_CalcPacketbitmapSize


C Specification

#include <nitro/wbt.h>

int WBT_CalcPacketbitmapSize(int block_size);
    

Description

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:

If the transmission packet size and the receive block data size are already known, the WBT_PACKET_BITMAP_SIZE macro obtains the same results.

Arguments

block_size The size of the data to be received.

Return Values

Returns the bitmap buffer size required to receive the corresponding amount of data.

See Also

WBT_GetBlock, WBT_PACKET_BITMAP_SIZE

Revision History

09/21/2004 Initial version