TOBI Interface A  0.1
boost::uint32_t tia::DataPacket3Impl::getRequiredRawMemorySize ( void *  mem,
boost::uint32_t  bytes_available 
) [virtual]

Get the required size (in bytes) to hold raw DataPacket stored in RAW memory. This function can be used to check, wether a memory region is able to hold a whole DataPacket by analyzing its header. If the RAW memory Region is too small to hold the DataPacket, 0 is returned.

Parameters:
[in]memA pointer to the RAW memory region holding a DataPacket.
[in]bytes_availableThe memory size, the DataPacket is stored in.
Returns:
0 if the RAW memory region is too small to hold the DataPacket, otherwise the needed size of the raw memory region.
Todo:
Rewrite this mehtod as its size is now available inside the data packet.

Implements tia::DataPacket.

Definition at line 553 of file data_packet_3_impl.cpp.

 All Data Structures Files Functions Variables Typedefs Enumerations