Copy byte[] content to CGBitmapContextGetData target

Hi, we have some code that loads a content of CGBitmapContext.
Is there a way of making some kind of memcpy from byte[] to CGBitmapContextGetData ?

Dear Kirill Prazdnikov,

You may be looking for this:

CGBitmapContextGetData(ctx).getBytePtr().copyFrom(source, sourceOffset, destinationOffset, length);

Best Regards,

Thanks cool,
I`ll use CRuntime.copyByteArray directly