Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copying slices of arrays

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two byte arrays.

I would like to copy the 1st 8 bytes from source to target.
Is there any util class that does that automatically - rather
than me doing:

Thanks
G
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know if it's exactly what you want, but have you seen java.lang.System.arrayCopy()?
Dave
(oh well, I tried. UBB doesn't like links to methods in the Java API)
[This message has been edited by David O'Meara (edited December 11, 2001).]
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that's what I need. Thanks David.
Pho
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic