Solved How can I quickly copy part of data between QByteArray?
-
I can write this code:
for(int Index = 0; Index < CountCopyData; ++Index) { ArrayReceiver->append(ArraySender->at(Index)); }
But I think, that isn't quickly way.
-
@AlekseyB
Hi
Without any types to see its hard to say anything :)I assume its strings. and yes, it will copy to ArrayReceiver.
But unless u have really many, it might not be an issue.
Also, without any hints to what you are trying, design and goals its hard to suggest anything :)
-
ArrayReceiver.append(ArraySender.constData(), CountCopyData);
-
@Chris-Kawa
Thank You!