本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteStructBegin方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteStructBegin方法的具体用法?C# TProtocol.WriteStructBegin怎么用?C# TProtocol.WriteStructBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteStructBegin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("TimedOutException");
oprot.WriteStructBegin(struc);
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例2: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: 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();
}
示例6: 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();
}
示例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();
}
示例8: 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();
}
示例9: Write
public void Write(TProtocol oprot) {
oprot.IncrementRecursionDepth();
try
{
TStruct struc = new TStruct("AnsCancelRequestMatch");
oprot.WriteStructBegin(struc);
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
finally
{
oprot.DecrementRecursionDepth();
}
}
示例10: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSCompleteMissionStep");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.missionSceneId) {
field.Name = "missionSceneId";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(MissionSceneId);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例11: 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();
}
示例12: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSCreateArmyMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Name != null && __isset.name) {
field.Name = "name";
field.Type = TType.String;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteString(Name);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例13: 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();
}
示例14: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSRegisterMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Username != null && __isset.username) {
field.Name = "username";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Username);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例15: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("ClientUsageMetrics");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.sessions) {
field.Name = "sessions";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Sessions);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}