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


Java CodedOutputByteBufferNano.writeFixed64方法代码示例

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


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

示例1: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasDasherCustomerId) || (this.dasherCustomerId != 0L)) {
    paramCodedOutputByteBufferNano.writeFixed64(1, this.dasherCustomerId);
  }
  if (this.docid != null) {
    paramCodedOutputByteBufferNano.writeMessage(2, this.docid);
  }
  if ((this.licensedOfferType != 1) || (this.hasLicensedOfferType)) {
    paramCodedOutputByteBufferNano.writeInt32(3, this.licensedOfferType);
  }
  if ((this.type != 0) || (this.hasType)) {
    paramCodedOutputByteBufferNano.writeInt32(4, this.type);
  }
  if ((this.hasRentalPeriodDays) || (this.rentalPeriodDays != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(5, this.rentalPeriodDays);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:Common.java

示例2: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasAndroidId) || (this.androidId != 0L)) {
    paramCodedOutputByteBufferNano.writeFixed64(10, this.androidId);
  }
  if ((this.deviceRestriction != 1) || (this.hasDeviceRestriction)) {
    paramCodedOutputByteBufferNano.writeInt32(11, this.deviceRestriction);
  }
  if ((this.hasChannelId) || (this.channelId != 0L)) {
    paramCodedOutputByteBufferNano.writeInt64(12, this.channelId);
  }
  if (this.filterInfo != null) {
    paramCodedOutputByteBufferNano.writeMessage(15, this.filterInfo);
  }
  if ((this.hasAvailableIfOwned) || (this.availableIfOwned)) {
    paramCodedOutputByteBufferNano.writeBool(22, this.availableIfOwned);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:FilterRules.java

示例3: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasFamilyId) || (this.familyId != 0L)) {
    paramCodedOutputByteBufferNano.writeFixed64(1, this.familyId);
  }
  if ((this.hasAskToBuy) || (this.askToBuy)) {
    paramCodedOutputByteBufferNano.writeBool(2, this.askToBuy);
  }
  if ((this.hasHohObfuscatedGaiaId) || (!this.hohObfuscatedGaiaId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.hohObfuscatedGaiaId);
  }
  if ((this.hasHohEmailAddress) || (!this.hohEmailAddress.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.hohEmailAddress);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:Instrument.java

示例4: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.licensedOfferType != 1) || (this.hasLicensedOfferType)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.licensedOfferType);
  }
  if ((this.hasGaiaGroupId) || (this.gaiaGroupId != 0L)) {
    paramCodedOutputByteBufferNano.writeFixed64(2, this.gaiaGroupId);
  }
  if (this.groupLicenseKey != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.groupLicenseKey);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:GroupLicense.java


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