title: memcpy + pointers + java
body: <p>I have seen there is no question that specifically reply to this combination of parameters:</p>
  
  <p>Java + memcpy + pointers.</p>
  
  <p>My background of C/C++ is probably biasing me.
  In C++ I can do this:</p>
  
  <pre><code>memcpy (Destination, Source, length_data);
  </code></pre>
  
  <p>and Destination and Source can be just two memory locations.
  Is there a way to do it in Java with arrays of primitive types?</p>
  
  <p>All the realizations of</p>
  
  <pre><code>Arrays.copyOf
  Arrays.copyOfRange
  </code></pre>
  
  <p>are basically doing half the job. In the sense that, you can specify the amount of data or a given range, but all of them give back one Array, they do not modify an existing one.</p>
  
  <p>Thanks in advance.</p>