private static void writeInt ( int value , byte [ ] array , int offset ) { for ( int i = 0 ; i < 4 ; i ++ ) { array [ offset + i ] = ( byte ) ( value >>> ( 8 * i ) ) ; } }
Writes an number into an array using 4 bytes .