public static byte [ ] toGUID ( long p1 , int p2 , int p3 , int p4 , long p5 ) { byte [ ] guid = new byte [ 16 ] ; guid [ 0 ] = ( byte ) ( p1 & 0xFF ) ; guid [ 1 ] = ( byte ) ( ( p1 >> 8 ) & 0xFF ) ; guid [ 2 ] = ( byte ) ( ( p1 >> 16 ) & 0xFF ) ; guid [ 3 ] = ( byte ) ( ( p1 >> 24 ) & 0xFF ) ; guid [ 4 ] = ( byte ) ( p2 & 0xFF ) ; guid [ 5 ] = ( byte ) ( ( p2 >> 8 ) & 0xFF ) ; guid [ 6 ] = ( byte ) ( p3 & 0xFF ) ; guid [ 7 ] = ( byte ) ( ( p3 >> 8 ) & 0xFF ) ; guid [ 8 ] = ( byte ) ( ( p4 >> 8 ) & 0xFF ) ; guid [ 9 ] = ( byte ) ( p4 & 0xFF ) ; guid [ 10 ] = ( byte ) ( ( p5 >> 40 ) & 0xFF ) ; guid [ 11 ] = ( byte ) ( ( p5 >> 32 ) & 0xFF ) ; guid [ 12 ] = ( byte ) ( ( p5 >> 24 ) & 0xFF ) ; guid [ 13 ] = ( byte ) ( ( p5 >> 16 ) & 0xFF ) ; guid [ 14 ] = ( byte ) ( ( p5 >> 8 ) & 0xFF ) ; guid [ 15 ] = ( byte ) ( p5 & 0xFF ) ; return guid ; }
Create a GUID .