當前位置: 首頁>>代碼示例>>C#>>正文


C# TProtocol.ReadListEnd方法代碼示例

本文整理匯總了C#中Thrift.Protocol.TProtocol.ReadListEnd方法的典型用法代碼示例。如果您正苦於以下問題:C# TProtocol.ReadListEnd方法的具體用法?C# TProtocol.ReadListEnd怎麽用?C# TProtocol.ReadListEnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.ReadListEnd方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Read

 public void Read (TProtocol iprot)
 {
   bool isset_Tokenizer = false;
   bool isset_Filters = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Tokenizer = new Tokenizer();
           Tokenizer.Read(iprot);
           isset_Tokenizer = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Filters = new List<TokenFilter>();
             TList _list10 = iprot.ReadListBegin();
             for( int _i11 = 0; _i11 < _list10.Count; ++_i11)
             {
               TokenFilter _elem12 = new TokenFilter();
               _elem12 = new TokenFilter();
               _elem12.Read(iprot);
               Filters.Add(_elem12);
             }
             iprot.ReadListEnd();
           }
           isset_Filters = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_Tokenizer)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_Filters)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
開發者ID:NobodyLiveForever,項目名稱:FlexSearch,代碼行數:54,代碼來源:AnalyzerProperties.cs

示例2: Read

 public void Read (TProtocol iprot)
 {
   bool isset_topology_id = false;
   bool isset_executors = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           Topology_id = iprot.ReadString();
           isset_topology_id = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Executors = new List<ExecutorInfo>();
             TList _list223 = iprot.ReadListBegin();
             for( int _i224 = 0; _i224 < _list223.Count; ++_i224)
             {
               ExecutorInfo _elem225;
               _elem225 = new ExecutorInfo();
               _elem225.Read(iprot);
               Executors.Add(_elem225);
             }
             iprot.ReadListEnd();
           }
           isset_executors = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_topology_id)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_executors)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:53,代碼來源:LocalAssignment.cs

示例3: Read

 public void Read (TProtocol iprot)
 {
   bool isset_full_class_name = false;
   bool isset_args_list = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           Full_class_name = iprot.ReadString();
           isset_full_class_name = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Args_list = new List<JavaObjectArg>();
             TList _list0 = iprot.ReadListBegin();
             for( int _i1 = 0; _i1 < _list0.Count; ++_i1)
             {
               JavaObjectArg _elem2;
               _elem2 = new JavaObjectArg();
               _elem2.Read(iprot);
               Args_list.Add(_elem2);
             }
             iprot.ReadListEnd();
           }
           isset_args_list = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_full_class_name)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_args_list)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:53,代碼來源:JavaObject.cs

示例4: Read

 public void Read (TProtocol iprot)
 {
   bool isset_output_fields = false;
   bool isset_direct = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             Output_fields = new List<string>();
             TList _list8 = iprot.ReadListBegin();
             for( int _i9 = 0; _i9 < _list8.Count; ++_i9)
             {
               string _elem10;
               _elem10 = iprot.ReadString();
               Output_fields.Add(_elem10);
             }
             iprot.ReadListEnd();
           }
           isset_output_fields = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Bool) {
           Direct = iprot.ReadBool();
           isset_direct = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_output_fields)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_direct)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
開發者ID:bcardi,項目名稱:storm-net-adapter,代碼行數:52,代碼來源:StreamInfo.cs

示例5: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 10:
         if (field.Type == TType.Map) {
           {
             StateConflictMap = new Dictionary<int, List<StateConflictConfigElement>>();
             TMap _map36 = iprot.ReadMapBegin();
             for( int _i37 = 0; _i37 < _map36.Count; ++_i37)
             {
               int _key38;
               List<StateConflictConfigElement> _val39;
               _key38 = iprot.ReadI32();
               {
                 _val39 = new List<StateConflictConfigElement>();
                 TList _list40 = iprot.ReadListBegin();
                 for( int _i41 = 0; _i41 < _list40.Count; ++_i41)
                 {
                   StateConflictConfigElement _elem42 = new StateConflictConfigElement();
                   _elem42 = new StateConflictConfigElement();
                   _elem42.Read(iprot);
                   _val39.Add(_elem42);
                 }
                 iprot.ReadListEnd();
               }
               StateConflictMap[_key38] = _val39;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:Blizzardx,項目名稱:ClientFrameWork,代碼行數:50,代碼來源:StateConflictConfig.cs

示例6: Read

 public void Read(TProtocol iprot)
 {
     TField field;
       TStruct struc = iprot.ReadStructBegin();
       while (true)
       {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) {
       break;
     }
     switch (field.ID)
     {
       case 1:
     if (field.Type == TType.String) {
       this.row = iprot.ReadBinary();
       this.__isset.row = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.List) {
       {
         this.mutations = new List<Mutation>();
         TList _list0 = iprot.ReadListBegin();
         for( int _i1 = 0; _i1 < _list0.Count; ++_i1)
         {
           Mutation _elem2 = new Mutation();
           _elem2 = new Mutation();
           _elem2.Read(iprot);
           this.mutations.Add(_elem2);
         }
         iprot.ReadListEnd();
       }
       this.__isset.mutations = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
開發者ID:charliem,項目名稱:OCM,代碼行數:47,代碼來源:BatchMutation.cs

示例7: Read

 public void Read(TProtocol iprot)
 {
     TField field;
     TStruct struc = iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.String) {
         this.name = iprot.ReadString();
         this.__isset.name = true;
       } else {
         TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.List) {
         {
           this.columns = new List<column_t>();
           TList _list9 = iprot.ReadListBegin();
           for( int _i10 = 0; _i10 < _list9.Count; ++_i10)
           {
             column_t _elem11 = new column_t();
             _elem11 = new column_t();
             _elem11.Read(iprot);
             this.columns.Add(_elem11);
           }
           iprot.ReadListEnd();
         }
         this.__isset.columns = true;
       } else {
         TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
開發者ID:jiansheng,項目名稱:cassandra,代碼行數:47,代碼來源:superColumn_t.cs

示例8: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 10:
         if (field.Type == TType.List) {
           {
             Phenomes = new List<CFastCyclicNetwork>();
             TList _list20 = iprot.ReadListBegin();
             for( int _i21 = 0; _i21 < _list20.Count; ++_i21)
             {
               CFastCyclicNetwork _elem22 = new CFastCyclicNetwork();
               _elem22 = new CFastCyclicNetwork();
               _elem22.Read(iprot);
               Phenomes.Add(_elem22);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:JonMerlevede,項目名稱:NeatSim,代碼行數:38,代碼來源:CPopulationInfo.cs

示例9: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             MonsterGroup = new List<MonsterGroup>();
             TList _list0 = iprot.ReadListBegin();
             for( int _i1 = 0; _i1 < _list0.Count; ++_i1)
             {
               MonsterGroup _elem2 = new MonsterGroup();
               _elem2 = new MonsterGroup();
               _elem2.Read(iprot);
               MonsterGroup.Add(_elem2);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:wuxin0602,項目名稱:Nothing,代碼行數:38,代碼來源:RaidMonsterGroupTemplate.cs

示例10: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 10:
         if (field.Type == TType.List) {
           {
             SyncInfos = new List<NetFramework.Auto.PostionInfoSync>();
             TList _list4 = iprot.ReadListBegin();
             for( int _i5 = 0; _i5 < _list4.Count; ++_i5)
             {
               NetFramework.Auto.PostionInfoSync _elem6 = new NetFramework.Auto.PostionInfoSync();
               _elem6 = new NetFramework.Auto.PostionInfoSync();
               _elem6.Read(iprot);
               SyncInfos.Add(_elem6);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:38,代碼來源:SCSceneCharInfoSync.cs

示例11: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             RegularityConfigMap = new List<Config.RegularityGameConfig>();
             TList _list103 = iprot.ReadListBegin();
             for( int _i104 = 0; _i104 < _list103.Count; ++_i104)
             {
               Config.RegularityGameConfig _elem105 = new Config.RegularityGameConfig();
               _elem105 = new Config.RegularityGameConfig();
               _elem105.Read(iprot);
               RegularityConfigMap.Add(_elem105);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:Blizzardx,項目名稱:ClientFrameWork,代碼行數:38,代碼來源:RegularityGameConfigTable.cs

示例12: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             DataList = new List<TerrainEditorData>();
             TList _list8 = iprot.ReadListBegin();
             for( int _i9 = 0; _i9 < _list8.Count; ++_i9)
             {
               TerrainEditorData _elem10 = new TerrainEditorData();
               _elem10 = new TerrainEditorData();
               _elem10.Read(iprot);
               DataList.Add(_elem10);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:Blizzardx,項目名稱:ClientFrameWork,代碼行數:38,代碼來源:TerrainEditorDataArray.cs

示例13: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 10:
         if (field.Type == TType.List) {
           {
             BattleLifeInfoList = new List<NetFramework.Auto.BattleLifeInfo>();
             TList _list44 = iprot.ReadListBegin();
             for( int _i45 = 0; _i45 < _list44.Count; ++_i45)
             {
               NetFramework.Auto.BattleLifeInfo _elem46 = new NetFramework.Auto.BattleLifeInfo();
               _elem46 = new NetFramework.Auto.BattleLifeInfo();
               _elem46.Read(iprot);
               BattleLifeInfoList.Add(_elem46);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:sgyli7,項目名稱:ClientFrameWork,代碼行數:38,代碼來源:SCSyncBattleLifeInfoMsg.cs

示例14: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             ApplyList = new List<KXSGCodec.FriendInfo>();
             TList _list4 = iprot.ReadListBegin();
             for( int _i5 = 0; _i5 < _list4.Count; ++_i5)
             {
               KXSGCodec.FriendInfo _elem6 = new KXSGCodec.FriendInfo();
               _elem6 = new KXSGCodec.FriendInfo();
               _elem6.Read(iprot);
               ApplyList.Add(_elem6);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:wuxin0602,項目名稱:Nothing,代碼行數:38,代碼來源:SCFriendApplyList.cs

示例15: Read

 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.List) {
           {
             Mentions = new List<ThriftMention>();
             TList _list4 = iprot.ReadListBegin();
             for( int _i5 = 0; _i5 < _list4.Count; ++_i5)
             {
               ThriftMention _elem6 = new ThriftMention();
               _elem6 = new ThriftMention();
               _elem6.Read(iprot);
               Mentions.Add(_elem6);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
開發者ID:yonglehou,項目名稱:Bermuda,代碼行數:38,代碼來源:ThriftMentionChunk.cs


注:本文中的Thrift.Protocol.TProtocol.ReadListEnd方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。