short c = (short)host.charAt(i);
target[pos++] = (byte)(c>>8);
target[pos++] = (byte)(c);
}
target[pos++] = (byte)(port>>8);
<BUG>target[pos++] = (byte)(port);
target[pos++] = (byte)(userId>>24);
target[pos++] = (byte)(userId>>16);
target[pos++] = (byte)(userId>>8);
target[pos++] = (byte)(userId);</BUG>
return pos;

short c = (short)host.charAt(i);
target[pos++] = (byte)(c>>8);
target[pos++] = (byte)(c);
}
target[pos++] = (byte)(port>>8);
target[pos++] = (byte)(port);
target[pos++] = (byte)(userId);
target[pos++] = (byte)(userId>>8);
target[pos++] = (byte)(userId>>16);
target[pos++] = (byte)(userId>>24);
