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