TOBI Interface A  0.1
void tia::DataPacket3Impl::reset ( void *  mem) [virtual]

Resets the whole DataPacket to be (re)build a DataPacket from raw memory.

Parameters:
[in]memRaw memory containing the raw representation of a DataPacket.
Exceptions:
std::invalid_argumentif packet version missmatch
Todo:

Implementing safety checks, as far as possible.

Size field is skipped!

This method (re)builds a DataPacket object from a raw memory region, containing the raw representation of a DataPacket.

Implements tia::DataPacket.

Definition at line 113 of file data_packet_3_impl.cpp.

 All Data Structures Files Functions Variables Typedefs Enumerations