What is the most efficient way to copy an array of 1000 integers from one array to another in a C object?
This will work on the iphone within some drawing code, so its important as efficiently as possible.
Thank.
If the issue is performance-related, I assume this is a C array from int. If so, you can use memcpy ().
For instance:
int copyOfArr[4], arr[4] = {0,1,2,3}; memcpy(copyOfArr, arr, sizeof(arr));
Hope this helps.
C, memcpy . NSArray, "copy".
Source: https://habr.com/ru/post/1778523/More articles:How to change the background color of buttons when clicking on any of them? - wpfCross-platform way to read Excel files in Python? - pythonFind out if an instance of a DataContract is serializable in WCF - c #Using Python FTP library to extract files - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1778522/array-index-loop-variable-resets-to-zero-in-c-c&usg=ALkJrhh9gmejzc8T7Qy2AJJJHgMFJU37VAПроблема 98 - Project Euler - anagramR5RS Scheme: Passing by Link - pass-by-referenceXNA and multitouch - xnaiphone NSNumberFormatter runs on simulator not on os 4.2 device during parsing - iphoneSaving stream (mp4) on iphone - streamAll Articles