public static int writeInt ( byte [ ] array , int offset , int v ) { array [ offset + 0 ] = ( byte ) ( v >>> 24 ) ; array [ offset + 1 ] = ( byte ) ( v >>> 16 ) ; array [ offset + 2 ] = ( byte ) ( v >>> 8 ) ; array [ offset + 3 ] = ( byte ) ( v >>> 0 ) ; return SIZE_INT ; }
Write an integer to the byte array at the given offset .