WBT_CalcPacketbitmapSize 

Syntax

#include <nitro/wbt.h>

int WBT_CalcPacketbitmapSize(int block_size);

Arguments

block_size Size of the data to be received.

Return Values

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

Description

Calculates and acquires the size required for the bitmap buffer for receive history records when receiving a specified data size with the WBT_GetBlock function.

Parents can only use this function after the WBT_InitParent function, and children can only use this function after the 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.


See Also

WBT_GetBlock
WBT_PACKET_BITMAP_SIZE

Revision History

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


CONFIDENTIAL