示例#1
0
        protected object ReadMessage()
        {
            byte[]       buffer       = ReadBuffer(147);
            LengthRecord lengthRecord = (LengthRecord)Deserialize(buffer);

            byte[] buffer2 = ReadBuffer(lengthRecord.length);
            return(Deserialize(buffer2));
        }
示例#2
0
		protected void SendMessage(ISerializable request)
		{
			byte[] array = this.Serialize(request);
			LengthRecord obj = new LengthRecord(array.Length);
			byte[] array2 = this.Serialize(obj);
			D.Assert(array2.Length == 147);
			this.WriteBuffer(array2, array2.Length);
			this.WriteBuffer(array, array.Length);
		}
示例#3
0
        protected void SendMessage(ISerializable request)
        {
            byte[]       array = Serialize(request);
            LengthRecord obj   = new LengthRecord(array.Length);

            byte[] array2 = Serialize(obj);
            D.Assert(array2.Length == 147);
            WriteBuffer(array2, array2.Length);
            WriteBuffer(array, array.Length);
        }