public void Write(uint methodId, object[] args, BinaryWriter bw)
{
bw.Write(methodId);
switch (methodId)
{
case 1:
{
if (args[0] == null)
{
bw.Write((byte)SerializeObjectMark.IsNull);
}
else
{
bw.Write((byte)SerializeObjectMark.Common);
bw.Write((String)args[0]);
}
if (args[1] == null)
{
bw.Write((byte)SerializeObjectMark.IsNull);
}
else
{
bw.Write((byte)SerializeObjectMark.Common);
bw.Write((String)args[1]);
}
if (args[2] == null)
{
bw.Write((byte)SerializeObjectMark.IsNull);
}
else
{
bw.Write((byte)SerializeObjectMark.Common);
bw.Write(((byte[])args[2]).Length);
bw.Write((byte[])args[2]);
}
break;
}
}
}
public object ReadReturn(uint methodId, BinaryReader br)