public static void writeInt32 ( final int value , final byte [ ] buffer , int offset ) { buffer [ offset ++ ] = ( byte ) ( ( value >>> 24 ) & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >>> 16 ) & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >>> 8 ) & 0xFF ) ; buffer [ offset ] = ( byte ) ( ( value >>> 0 ) & 0xFF ) ; }
Writes the 32 - bit int into the buffer starting with the most significant byte .