TheKedge
22nd January 2007, 13:26
Hi,
I've got an wrapper/overload func below. My question: after calling this function, is my data valid? Is a deep copy done?
How should I do it best? Should I 'new' a QVector or should I ::memcpy()?
thanks
K
void CLASS::getData(short* piData)
{
QVector<short> trace;
getData(&trace);
piData = trace.data();//do I need to copy this?
return;
}
I've got an wrapper/overload func below. My question: after calling this function, is my data valid? Is a deep copy done?
How should I do it best? Should I 'new' a QVector or should I ::memcpy()?
thanks
K
void CLASS::getData(short* piData)
{
QVector<short> trace;
getData(&trace);
piData = trace.data();//do I need to copy this?
return;
}