common/src/main/java/HTTPClient/DefaultAuthHandler.java
/**
     * Write unicode string to buffer in little-endian format.
     */
Write unicode string to buffer in little-endian format.
Write unicode string to buffer in little - endian format .
private static int writeUnicode(String str, byte[] buf, int off)
    {
	int len = str.length();
	for (int idx=0; idx<len; idx++)
	{
	    int c = str.charAt(idx);
	    buf[off++] = (byte) c;
	    buf[off++] = (byte) (c >> 8);
	}
	return off;
    }
private static int writeUnicode ( String str , byte [ ] buf , int off ) { int len = str . length ( ) ; for ( int idx = 0 ; idx < len ; idx ++ ) { int c = str . charAt ( idx ) ; buf [ off ++ ] = ( byte ) c ; buf [ off ++ ] = ( byte ) ( c >> 8 ) ; } return off ; }
Write unicode string to buffer in little-endian format.
Write unicode string to buffer in little - endian format .