|
TOBI Interface A
0.1
|
| boost::uint32_t tia::DataPacketImpl::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.
| [in] | mem | A pointer to the RAW memory region holding a DataPacket. |
| [in] | bytes_available | The memory size, the DataPacket is stored in. |
Implements tia::DataPacket.
Definition at line 471 of file data_packet_impl.cpp.