Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. byte[] copy= new byte[16];
  2. byte[] bArr=null;
  3. int k= p_asDestination.length;
  4. int l =-1;
  5. for (int i=0;i<250 && l<i;i++) //copy current bytearray
  6. {
  7. bArr = m_BlockDevice.readBlock(i);
  8. String cName= new String(copy);
  9. for(int j=0;j<16;j++)
  10. {
  11. copy[j]= bArr[j+2];
  12. }
  13. if(cName.equals("p_asSource"));
  14. {
  15. l=i;
  16. }
  17. }
  18. copy=p_asDestination[k-1].getBytes();
  19. for(int i=0;i<16;i++) //put new name in byte array
  20. {
  21. bArr[i+2] = copy[i]; // alter this to match new name
  22. if(i>=k)
  23. {
  24. bArr[i]= 0;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement