title: Converting long[64] to byte[512] in Java?
body: <p>I'm porting a process over to Java. There's already working versions in C# and C++.</p>
  
  <p>I have a section in C# that I do Marshal.Copy(...) to convert 64 ulongs to 512 bytes and that line in C++ I use memmove(...) to do the same thing. What is available in Java to achieve the same result? I need the same binary information in the same order just as bytes instead of longs.</p>
  
  <p>Edit:</p>
  
  <p>The reason I'm porting to Java is to take advantage of the portability that Java naturally has. I would not like to use native code.</p>
  
  <p>Another thing. Since Java doesn't contain unsigned values, then I need to change what I'm requesting by just a little. I would like to attain the 8 unsigned byte values from each of the 64 longs (ulongs in C# and C++) so that I can use those values at indices in arrays later. This needs to happen thousands of times so the fastest way would be the best way.</p>