HproseWriter hproseWriter = new HproseWriter(ostream);
ostream.write(HproseTags.TagCall);
hproseWriter.writeString(functionName, false);
if ((arguments != null) && (arguments.length > 0 || byRef)) {
hproseWriter.reset();
hproseWriter.writeArray(arguments, false);
if (byRef) {
hproseWriter.writeBoolean(true);
}
}
ostream.write(HproseTags.TagEnd);