P Patrick Clark Active Member Licensed User Jun 14, 2020 #1 is there a better way of doing this to only use a portion of an array of bytes B4X: dim bigbuffer(10000) as byte dim smallbuffer(100) as byte for i = 0 to 99 smallbuffer(i) = bigbuffer(i) next
is there a better way of doing this to only use a portion of an array of bytes B4X: dim bigbuffer(10000) as byte dim smallbuffer(100) as byte for i = 0 to 99 smallbuffer(i) = bigbuffer(i) next
agraham Expert Licensed User Longtime User Jun 14, 2020 #2 Use ArrayCopy from my ByteConverter library https://www.b4x.com/android/forum/threads/byteconverter-library.6787/ Upvote 0
Use ArrayCopy from my ByteConverter library https://www.b4x.com/android/forum/threads/byteconverter-library.6787/
P Patrick Clark Active Member Licensed User Jun 14, 2020 #3 agraham said: Use ArrayCopy from my ByteConverter library https://www.b4x.com/android/forum/threads/byteconverter-library.6787/ Click to expand... Thank you... much faster Upvote 0
agraham said: Use ArrayCopy from my ByteConverter library https://www.b4x.com/android/forum/threads/byteconverter-library.6787/ Click to expand... Thank you... much faster
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2020 #4 Note that a similar method is available with Bit.ArrayCopy. It is also cross platform. Upvote 0