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

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

        v.Result = m_Result;

        return(v);
    }