vb.net - Java equivalent of Buffer.BlockCopy -


what java equivalent of vb's buffer.blockcopy?

for (int = 0; < num5; i++) {     int[] dst = new int[9];     // buffer.blockcopy(bytes, (num2 + &hf8) + (i * 40), dst, 0, 40)     byte[] buffer2 = new byte[dst[4] - 1];     // buffer.blockcopy(bytes, dst(5), buffer2, 0, buffer2.length) } 

notice commented out section... don't know java equivalent put there.

if understand properly, think want system.arraycopy(). the javadoc can found here.

a quick example be:

int[] src = new int[3] {1,2,3}; int[] dst = new int[4]; system.arraycopy(src, 0, dst, 0, 3); // copies of src dst starting @ zero. // dst {1,2,3,0} 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -