Ejemplo n.º 1
0
    //Protobuffer从MemoryStream进行反序列化
    public bool FromMemoryStream(MemoryStream protoMS)
    {
        OneVSOneRpcReplyActReply pb = ProtoBuf.Serializer.Deserialize <OneVSOneRpcReplyActReply>(protoMS);

        FromPB(pb);
        return(true);
    }
Ejemplo n.º 2
0
 //从Protobuffer类型初始化
 public void FromPB(OneVSOneRpcReplyActReply v)
 {
     if (v == null)
     {
         return;
     }
     m_Result   = v.Result;
     m_UserId   = v.UserId;
     m_IsOK     = v.IsOK;
     m_PlanName = v.PlanName;
 }
Ejemplo n.º 3
0
    //转化成Protobuffer类型函数
    public OneVSOneRpcReplyActReply ToPB()
    {
        OneVSOneRpcReplyActReply v = new OneVSOneRpcReplyActReply();

        v.Result   = m_Result;
        v.UserId   = m_UserId;
        v.IsOK     = m_IsOK;
        v.PlanName = m_PlanName;

        return(v);
    }