本文整理汇总了C#中Thrift.Protocol.TField类的典型用法代码示例。如果您正苦于以下问题:C# TField类的具体用法?C# TField怎么用?C# TField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TField类属于Thrift.Protocol命名空间,在下文中一共展示了TField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("IndexStatusResponse");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "Status";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Status);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:NobodyLiveForever,项目名称:FlexSearch,代码行数:13,代码来源:IndexStatusResponse.cs
示例2: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("InvalidRequestException");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "why";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Why);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:cosh,项目名称:C4,代码行数:13,代码来源:InvalidRequestException.cs
示例3: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("AlreadyAliveException");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "msg";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Msg);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:13,代码来源:AlreadyAliveException.cs
示例4: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("LSSupervisorId");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "supervisor_id";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Supervisor_id);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:13,代码来源:LSSupervisorId.cs
示例5: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCChatResultMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "result";
field.Type = TType.Byte;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteByte(Result);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:SCChatResultMsg.cs
示例6: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSChatSettingMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "chatSetting";
field.Type = TType.Struct;
field.ID = 10;
oprot.WriteFieldBegin(field);
ChatSetting.Write(oprot);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:CSChatSettingMsg.cs
示例7: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCSystemInfoMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "systemInfo";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
SystemInfo.Write(oprot);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:SCSystemInfoMsg.cs
示例8: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("StoreAggregatesException");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Msg != null && __isset.msg) {
field.Name = "msg";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Msg);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:theburningmonk,项目名称:Medidata.ZipkinTracerModule,代码行数:15,代码来源:StoreAggregatesException.cs
示例9: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSHeroMaxExtend");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.extendTimes) {
field.Name = "extendTimes";
field.Type = TType.I16;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI16(ExtendTimes);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:wuxin0602,项目名称:Nothing,代码行数:15,代码来源:CSHeroMaxExtend.cs
示例10: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCSingleSceneCharInfoSyncMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (SceneChar != null && __isset.sceneChar) {
field.Name = "sceneChar";
field.Type = TType.Struct;
field.ID = 10;
oprot.WriteFieldBegin(field);
SceneChar.Write(oprot);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:SCSingleSceneCharInfoSyncMsg.cs
示例11: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSSelectFriendMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (FriendArr != null && __isset.friendArr) {
field.Name = "friendArr";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(FriendArr);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:CSSelectFriendMsg.cs
示例12: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCHeroSkillQualityLevelUpMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (FailSystemInfo != null && __isset.failSystemInfo) {
field.Name = "failSystemInfo";
field.Type = TType.Struct;
field.ID = 10;
oprot.WriteFieldBegin(field);
FailSystemInfo.Write(oprot);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:SCHeroSkillQualityLevelUpMsg.cs
示例13: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("TowerDefenseStageResult");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.currDefTargetHp) {
field.Name = "currDefTargetHp";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(CurrDefTargetHp);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:TowerDefenseStageResult.cs
示例14: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("GetInfoOptions");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.num_err_choice) {
field.Name = "num_err_choice";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Num_err_choice);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:15,代码来源:GetInfoOptions.cs
示例15: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSUpdateArmyBulletinBoardContentMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (BulletinBoardContent != null && __isset.bulletinBoardContent) {
field.Name = "bulletinBoardContent";
field.Type = TType.String;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteString(BulletinBoardContent);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:CSUpdateArmyBulletinBoardContentMsg.cs
示例16: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("IOError");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Message != null && __isset.message) {
field.Name = "message";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Message);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:shentianyi,项目名称:LEONIPack,代码行数:15,代码来源:IOError.cs
示例17: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("EnterGameRequest");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.charId) {
field.Name = "charId";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(CharId);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:15,代码来源:EnterGameRequest.cs
示例18: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCAddGemMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (GemInfo != null && __isset.gemInfo) {
field.Name = "gemInfo";
field.Type = TType.Struct;
field.ID = 10;
oprot.WriteFieldBegin(field);
GemInfo.Write(oprot);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:SCAddGemMsg.cs
示例19: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("BidResponse");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.success) {
field.Name = "success";
field.Type = TType.Bool;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteBool(Success);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:15,代码来源:BidResponse.cs
示例20: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSDeleteBlackNameMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.friendId) {
field.Name = "friendId";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32(FriendId);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:15,代码来源:CSDeleteBlackNameMsg.cs
注:本文中的Thrift.Protocol.TField类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论