/** * Convert a long into a byte array. */ public static byte[] convertToByteArray( long n ) { n = ( n ^ 0x8000000000000000L ); // flip MSB because "long" is signed byte[] key = new byte[8]; pack8( key, 0, n ); return key; }
/** * Convert a long into a byte array. */ public static byte[] convertToByteArray( long n ) { n = (n ^ 0x8000000000000000L); // flip MSB because "long" is signed byte[] key = new byte[8]; pack8( key, 0, n ); return key; }
/** * Convert a long into a byte array. */ public static byte[] convertToByteArray( long n ) { n = (n ^ 0x8000000000000000L); // flip MSB because "long" is signed byte[] key = new byte[8]; pack8( key, 0, n ); return key; }