Beispiel #1
0
 public override void EncodeBody(NetworkBuffer outbuffer)
 {
     MySerializer.GetInstance().Serialize <T>(outbuffer, protocol);
 }
Beispiel #2
0
 public override Message DecodeBody(byte[] buffer, int offset, int count)
 {
     protocol = (T)MySerializer.GetInstance().DeserializeByteBuffer(buffer, offset, count, typeof(T));
     return(this);
 }