##// END OF EJS Templates
Function added to the plugin to store packets in CSV format.
Function added to the plugin to store packets in CSV format.

File last commit:

r14:304f5a6ad6b4 default
r55:4ea52012da18 default
Show More
tmpackettoread.cpp
18 lines | 437 B | text/x-c | CppLexer
#include "tmpackettoread.h"
TMPacketToRead::TMPacketToRead(unsigned char *Value, unsigned int size,
QObject *parent) :
QObject(parent)
{
this->Value = (unsigned char*) malloc(size);
for(unsigned int i=0; i<size;i++)
{
this->Value[i] = Value[i]; // local copy of the data pointed by Value
}
this->size = size;
}
TMPacketToRead::~TMPacketToRead()
{
free(this->Value);
}