public static void setInt32 ( byte [ ] dst , int offset , long value ) throws IllegalArgumentException { assert value <= Integer . MAX_VALUE : "value out of range" ; dst [ offset + 0 ] = ( byte ) ( value & 0xFF ) ; dst [ offset + 1 ] = ( byte ) ( ( value >>> 8 ) & 0xFF ) ; dst [ offset + 2 ] = ( byte ) ( ( value >>> 16 ) & 0xFF ) ; dst [ offset + 3 ] = ( byte ) ( ( value >>> 24 ) & 0xFF ) ; }
Sets a 32 - bit integer in the given byte array at the given offset .