public static byte [ ] longToBytes ( long rmid ) { return new byte [ ] { ( byte ) ( rmid >> 56 ) , ( byte ) ( rmid >> 48 ) , ( byte ) ( rmid >> 40 ) , ( byte ) ( rmid >> 32 ) , ( byte ) ( rmid >> 24 ) , ( byte ) ( rmid >> 16 ) , ( byte ) ( rmid >> 8 ) , ( byte ) ( rmid ) } ; }
Utility function which transfers a long to a byte array in big endian format .