本文整理汇总了C#中Thrift.Protocol.TProtocol.ReadMapEnd方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.ReadMapEnd方法的具体用法?C# TProtocol.ReadMapEnd怎么用?C# TProtocol.ReadMapEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.ReadMapEnd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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.Map) {
{
MessageMap = new Dictionary<string, Dictionary<int, string>>();
TMap _map30 = iprot.ReadMapBegin();
for( int _i31 = 0; _i31 < _map30.Count; ++_i31)
{
string _key32;
Dictionary<int, string> _val33;
_key32 = iprot.ReadString();
{
_val33 = new Dictionary<int, string>();
TMap _map34 = iprot.ReadMapBegin();
for( int _i35 = 0; _i35 < _map34.Count; ++_i35)
{
int _key36;
string _val37;
_key36 = iprot.ReadI32();
_val37 = iprot.ReadString();
_val33[_key36] = _val37;
}
iprot.ReadMapEnd();
}
MessageMap[_key32] = _val33;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例2: 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.Map) {
{
this.columns = new Dictionary<byte[], TCell>();
TMap _map4 = iprot.ReadMapBegin();
for( int _i5 = 0; _i5 < _map4.Count; ++_i5)
{
byte[] _key6;
TCell _val7;
_key6 = iprot.ReadBinary();
_val7 = new TCell();
_val7.Read(iprot);
this.columns[_key6] = _val7;
}
iprot.ReadMapEnd();
}
this.__isset.columns = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例3: Read
public void Read (TProtocol iprot)
{
bool isset_serialized_parts = 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.Map) {
{
Serialized_parts = new Dictionary<string, ThriftSerializedObject>();
TMap _map218 = iprot.ReadMapBegin();
for( int _i219 = 0; _i219 < _map218.Count; ++_i219)
{
string _key220;
ThriftSerializedObject _val221;
_key220 = iprot.ReadString();
_val221 = new ThriftSerializedObject();
_val221.Read(iprot);
Serialized_parts[_key220] = _val221;
}
iprot.ReadMapEnd();
}
isset_serialized_parts = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
if (!isset_serialized_parts)
throw new TProtocolException(TProtocolException.INVALID_DATA);
}
示例4: Read
public void Read (TProtocol iprot)
{
bool isset_assignments = 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.Map) {
{
Assignments = new Dictionary<int, LocalAssignment>();
TMap _map232 = iprot.ReadMapBegin();
for( int _i233 = 0; _i233 < _map232.Count; ++_i233)
{
int _key234;
LocalAssignment _val235;
_key234 = iprot.ReadI32();
_val235 = new LocalAssignment();
_val235.Read(iprot);
Assignments[_key234] = _val235;
}
iprot.ReadMapEnd();
}
isset_assignments = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
if (!isset_assignments)
throw new TProtocolException(TProtocolException.INVALID_DATA);
}
示例5: Read
public void Read (TProtocol iprot)
{
bool isset_creds = 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.Map) {
{
Creds = new Dictionary<string, string>();
TMap _map163 = iprot.ReadMapBegin();
for( int _i164 = 0; _i164 < _map163.Count; ++_i164)
{
string _key165;
string _val166;
_key165 = iprot.ReadString();
_val166 = iprot.ReadString();
Creds[_key165] = _val166;
}
iprot.ReadMapEnd();
}
isset_creds = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
if (!isset_creds)
throw new TProtocolException(TProtocolException.INVALID_DATA);
}
示例6: Read
public void Read (TProtocol iprot)
{
bool isset_approved_workers = 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.Map) {
{
Approved_workers = new Dictionary<string, int>();
TMap _map227 = iprot.ReadMapBegin();
for( int _i228 = 0; _i228 < _map227.Count; ++_i228)
{
string _key229;
int _val230;
_key229 = iprot.ReadString();
_val230 = iprot.ReadI32();
Approved_workers[_key229] = _val230;
}
iprot.ReadMapEnd();
}
isset_approved_workers = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
if (!isset_approved_workers)
throw new TProtocolException(TProtocolException.INVALID_DATA);
}
示例7: 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.Map) {
{
FuncMap = new Dictionary<int, Config.FuncGroup>();
TMap _map5 = iprot.ReadMapBegin();
for( int _i6 = 0; _i6 < _map5.Count; ++_i6)
{
int _key7;
Config.FuncGroup _val8;
_key7 = iprot.ReadI32();
_val8 = new Config.FuncGroup();
_val8.Read(iprot);
FuncMap[_key7] = _val8;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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 1:
if (field.Type == TType.Map) {
{
RewardTmpls = new Dictionary<int, RewardTemplate>();
TMap _map0 = iprot.ReadMapBegin();
for( int _i1 = 0; _i1 < _map0.Count; ++_i1)
{
int _key2;
RewardTemplate _val3;
_key2 = iprot.ReadI32();
_val3 = new RewardTemplate();
_val3.Read(iprot);
RewardTmpls[_key2] = _val3;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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.Map) {
{
StageConfigMap = new Dictionary<int, Config.StageConfig>();
TMap _map50 = iprot.ReadMapBegin();
for( int _i51 = 0; _i51 < _map50.Count; ++_i51)
{
int _key52;
Config.StageConfig _val53;
_key52 = iprot.ReadI32();
_val53 = new Config.StageConfig();
_val53.Read(iprot);
StageConfigMap[_key52] = _val53;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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 1:
if (field.Type == TType.Map) {
{
MainMissionConfigMap = new Dictionary<int, Config.MainMissionConfig>();
TMap _map45 = iprot.ReadMapBegin();
for( int _i46 = 0; _i46 < _map45.Count; ++_i46)
{
int _key47;
Config.MainMissionConfig _val48;
_key47 = iprot.ReadI32();
_val48 = new Config.MainMissionConfig();
_val48.Read(iprot);
MainMissionConfigMap[_key47] = _val48;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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 10:
if (field.Type == TType.Map) {
{
DifficultyConfig = new Dictionary<string, DifficultyConfig>();
TMap _map10 = iprot.ReadMapBegin();
for( int _i11 = 0; _i11 < _map10.Count; ++_i11)
{
string _key12;
DifficultyConfig _val13;
_key12 = iprot.ReadString();
_val13 = new DifficultyConfig();
_val13.Read(iprot);
DifficultyConfig[_key12] = _val13;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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 10:
if (field.Type == TType.Map) {
{
EventConfig = new Dictionary<string, EventConfig>();
TMap _map25 = iprot.ReadMapBegin();
for( int _i26 = 0; _i26 < _map25.Count; ++_i26)
{
string _key27;
EventConfig _val28;
_key27 = iprot.ReadString();
_val28 = new EventConfig();
_val28.Read(iprot);
EventConfig[_key27] = _val28;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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 1:
if (field.Type == TType.Map) {
{
MusicConfigMap = new Dictionary<int, Config.MusicGameNoteKeyConfig>();
TMap _map123 = iprot.ReadMapBegin();
for( int _i124 = 0; _i124 < _map123.Count; ++_i124)
{
int _key125;
Config.MusicGameNoteKeyConfig _val126;
_key125 = iprot.ReadI32();
_val126 = new Config.MusicGameNoteKeyConfig();
_val126.Read(iprot);
MusicConfigMap[_key125] = _val126;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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.Map) {
{
SkillConfigMap = new Dictionary<int, Config.SkillConfig>();
TMap _map69 = iprot.ReadMapBegin();
for( int _i70 = 0; _i70 < _map69.Count; ++_i70)
{
int _key71;
Config.SkillConfig _val72;
_key71 = iprot.ReadI32();
_val72 = new Config.SkillConfig();
_val72.Read(iprot);
SkillConfigMap[_key71] = _val72;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例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.Map) {
{
TargetMap = new Dictionary<int, Config.TargetGroup>();
TMap _map10 = iprot.ReadMapBegin();
for( int _i11 = 0; _i11 < _map10.Count; ++_i11)
{
int _key12;
Config.TargetGroup _val13;
_key12 = iprot.ReadI32();
_val13 = new Config.TargetGroup();
_val13.Read(iprot);
TargetMap[_key12] = _val13;
}
iprot.ReadMapEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}