Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] copy= new byte[16];
- byte[] bArr=null;
- int k= p_asDestination.length;
- int l =-1;
- for (int i=0;i<250 && l<i;i++) //copy current bytearray
- {
- bArr = m_BlockDevice.readBlock(i);
- String cName= new String(copy);
- for(int j=0;j<16;j++)
- {
- copy[j]= bArr[j+2];
- }
- if(cName.equals("p_asSource"));
- {
- l=i;
- }
- }
- copy=p_asDestination[k-1].getBytes();
- for(int i=0;i<16;i++) //put new name in byte array
- {
- bArr[i+2] = copy[i]; // alter this to match new name
- if(i>=k)
- {
- bArr[i]= 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement