Skip to content

Commit 1328cb7

Browse files
committed
working on NEUR-266, image to indicate video in session
1 parent 9d558b2 commit 1328cb7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/driverUtilities/UtilShimmer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,14 @@ public static String longToHexStringWithSpacesFormatted(long number, int numByte
790790
return bytesToHexStringWithSpacesFormatted(bytesArray);
791791
}
792792

793+
public static String longToHexString(long number, int numBytes) {
794+
byte[] bytesArray = new byte[numBytes];
795+
for(int i=0;i<numBytes;i++){
796+
bytesArray[i] = (byte) ((number >> (i*8)) & 0xFF);
797+
}
798+
return bytesToHexString(bytesArray);
799+
}
800+
793801
public static String doubleArrayToString(double[][] doubleArray) {
794802
String returnString = "";
795803
for(int x=0;x<doubleArray.length;x++){

0 commit comments

Comments
 (0)