当前位置: 首页>>代码示例>>C#>>正文


C# TProtocol.WriteFieldBegin方法代码示例

本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteFieldBegin方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteFieldBegin方法的具体用法?C# TProtocol.WriteFieldBegin怎么用?C# TProtocol.WriteFieldBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteFieldBegin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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

示例2: 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

示例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("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

示例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();
 }
开发者ID:cosh,项目名称:C4,代码行数:13,代码来源:InvalidRequestException.cs

示例6: 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

示例7: 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

示例8: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("RelatedNotesExampleText");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Text != null && __isset.text) {
     field.Name = "text";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Text);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:evernote,项目名称:evernote-demo-metro,代码行数:15,代码来源:RelatedNotesExampleText.cs

示例9: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("QueueRequest");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Data != null && __isset.data) {
     field.Name = "data";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Data);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:shshen,项目名称:bigqueue,代码行数:15,代码来源:QueueRequest.cs

示例10: 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();
 }
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:15,代码来源:ClientUsageMetrics.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LocalStateData");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "serialized_parts";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, Serialized_parts.Count));
     foreach (string _iter222 in Serialized_parts.Keys)
     {
       oprot.WriteString(_iter222);
       Serialized_parts[_iter222].Write(oprot);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:21,代码来源:LocalStateData.cs

示例12: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LSApprovedWorkers");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "approved_workers";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.String, TType.I32, Approved_workers.Count));
     foreach (string _iter231 in Approved_workers.Keys)
     {
       oprot.WriteString(_iter231);
       oprot.WriteI32(Approved_workers[_iter231]);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:21,代码来源:LSApprovedWorkers.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LSSupervisorAssignments");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "assignments";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.I32, TType.Struct, Assignments.Count));
     foreach (int _iter236 in Assignments.Keys)
     {
       oprot.WriteI32(_iter236);
       Assignments[_iter236].Write(oprot);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:21,代码来源:LSSupervisorAssignments.cs

示例14: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Credentials");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "creds";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.String, TType.String, Creds.Count));
     foreach (string _iter167 in Creds.Keys)
     {
       oprot.WriteString(_iter167);
       oprot.WriteString(Creds[_iter167]);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:21,代码来源:Credentials.cs

示例15: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("batch_insert_superColumn_blocking_args");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.batchMutationSuper != null) {
     field.Name = "batchMutationSuper";
     field.Type = TType.Struct;
     field.ID = -1;
     oprot.WriteFieldBegin(field);
     this.batchMutationSuper.Write(oprot);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:jiansheng,项目名称:cassandra,代码行数:16,代码来源:Cassandra.cs


注:本文中的Thrift.Protocol.TProtocol.WriteFieldBegin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。