MemoryBlock::copyTo functionality (parameter offset)


#1

Hi,

I had some issues with the MemoryBlock::copyTo method in case offset > 0. Turns out, it always starts copying at offset 0.

Should be changed from “memcpy (d, data, num)” to something like “memcpy(d, data + offset, num)” or am I missing the point of the method?

Best,
Thomas


#2

Ah - yes, you’re totally right about that, sorry!


#3

Weird, I just spotted this bug this afternoon and was about to post about it until I saw your thread.

Quentin.


#4