当前位置: 首页>>代码示例>>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;未经允许,请勿转载。