Link to home
Start Free TrialLog in
Avatar of eugeneng
eugeneng

asked on

how to do memcpy() in java ?

how to copy the content of a huge byte() (byte array) to another, as we can do in c using memcpy() ?

to be more specific, for example,
byte[] ba1;
byte[] ba2 = new byte[100];

ba1 = new String("how to do memcpy in java");
 
  memcpy(ba2,ba1,ba1.length) <-- how to do this in java ?
    or
  memcpy(ba2[10],ba1,ba1.length) <-- how to do this in java ?
ASKER CERTIFIED SOLUTION
Avatar of kotan
kotan
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eugeneng
eugeneng

ASKER

great!! thanx a lot man.
great!! thanx a lot man.