tmpackettoread.cpp
18 lines
| 437 B
| text/x-c
|
CppLexer
/ rmapplugin / tmpackettoread.cpp
r14 | #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); | ||||
} | ||||