common/src/main/java/HTTPClient/MD4.java
/**
     * Convert an array of int's into an array of byte's (little endian).
     *
     * @param buffer the array of int's to convert
     * @param off    the offset in <var>buffer</var> to start at
     * @param len    the length of <var>buffer</var>
     * @return an array of byte
     */
Convert an array of int's into an array of byte's (little endian).
@param buffer the array of int's to convert
@param off    the offset in buffer to start at
@param len    the length of buffer
@return an array of byte
Convert an array of int ' s into an array of byte ' s ( little endian ) . @param buffer the array of int ' s to convert @param off the offset in buffer to start at @param len the length of buffer @return an array of byte
private static final byte[] encode(int buffer[], int off, int len)
    {
	int    blen = len << 2;
	byte[] out  = new byte[blen];
	for (int dst=0, src=off; dst<blen; src++)
	{
	    int b = buffer[src];
	    out[dst++] = (byte) (b & 0xff);
	    out[dst++] = (byte) ((b >> 8)  & 0xff);
	    out[dst++] = (byte) ((b >> 16) & 0xff);
	    out[dst++] = (byte) ((b >> 24) & 0xff);
	}
	return out;
    }
private static final byte [ ] encode ( int buffer [ ] , int off , int len ) { int blen = len << 2 ; byte [ ] out = new byte [ blen ] ; for ( int dst = 0 , src = off ; dst < blen ; src ++ ) { int b = buffer [ src ] ; out [ dst ++ ] = ( byte ) ( b & 0xff ) ; out [ dst ++ ] = ( byte ) ( ( b >> 8 ) & 0xff ) ; out [ dst ++ ] = ( byte ) ( ( b >> 16 ) & 0xff ) ; out [ dst ++ ] = ( byte ) ( ( b >> 24 ) & 0xff ) ; } return out ; }
Convert an array of int's into an array of byte's (little endian).
Convert an array of int ' s into an array of byte ' s ( little endian ) .