Skip to content

Commit

Permalink
[NTRClient.java] Extra housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
ChainSwordCS committed Mar 6, 2024
1 parent 311e3b7 commit 5b39718
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/java/chokistream/NTRClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,24 +218,6 @@ public static byte[] intToBytes(int num) {
return data;
}

/**
* Copies all values from source byte array to destination byte array, starting at a given index in the destination byte array.
*
* @param src source byte array
* @param dst destination byte array
* @param i starting index / offset of the destination byte array.
*/
public static void copyByteArray(byte[] src, byte[] dst, int i) {
try {
for(int j = 0; j < src.length ; j++) {
dst[i+j] = src[j];
}
}
catch(ArrayIndexOutOfBoundsException e) {
e.printStackTrace();
}
}

/**
* Represents a (TCP) packet received from NTR / NTR-HR
*/
Expand Down

0 comments on commit 5b39718

Please sign in to comment.