예제 #1
0
 public void Deserialize(CompactReader reader)
 {
     this._name      = (string)reader.ReadObject();
     this._data      = reader.ReadBytes(10 * 1024);
     this._sampleObj = (SampleObject)reader.ReadObject();
     this.time       = reader.ReadDateTime();
 }
예제 #2
0
        void ICompactSerializable.Deserialize(CompactReader reader)
        {
            dest_addr  = (Address)reader.ReadObject();
            dest_addrs = (ArrayList)reader.ReadObject();
            src_addr   = (Address)reader.ReadObject();
            prio       = (Priority)Enum.ToObject(typeof(Priority), reader.ReadInt16());
            Boolean isStream = reader.ReadBoolean();

            if (isStream)
            {
                int len = reader.ReadInt32();
                buf = reader.ReadBytes(len);
            }
            else
            {
                buf = (byte[])reader.ReadObject();
            }
            headers = (Hashtable)reader.ReadObject();
            handledAsynchronously = reader.ReadBoolean();
            responseExpected      = reader.ReadBoolean();
            _type       = reader.ReadByte();
            _stackTrace = reader.ReadObject() as Hashtable;

            offset = 0;
            length = (buf != null) ? buf.Length : 0;
        }
예제 #3
0
 public void Deserialize(CompactReader reader)
 {
     Name      = reader.ReadString();
     Id        = reader.ReadUInt32();
     GuidData  = reader.ReadGuid();
     ByteData  = reader.ReadBytes(4 * 1024);
     FloatData = reader.ReadSingle();;
     Time      = reader.ReadDateTime();
     Table     = (Hashtable)reader.ReadObject();
 }
예제 #4
0
		void ICompactSerializable.Deserialize(CompactReader reader)
		{
			dest_addr = (Address) reader.ReadObject();
			dest_addrs = (ArrayList)reader.ReadObject();
            src_addr = (Address)reader.ReadObject();
			prio = (Priority) Enum.ToObject(typeof(Priority), reader.ReadInt16());
             Boolean isStream = reader.ReadBoolean();
             if (isStream)
             {
                 int len = reader.ReadInt32();
                 buf = reader.ReadBytes(len);
             }
             else
             {
                 buf = (byte[])reader.ReadObject();
             }
            headers = (Hashtable)reader.ReadObject();
            handledAsynchronously = reader.ReadBoolean();
            responseExpected = reader.ReadBoolean();
            _type = reader.ReadByte();
            _stackTrace = reader.ReadObject() as Hashtable;

			offset = 0;
			length = (buf != null) ? buf.Length : 0;
		}