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


Java FlatBufferBuilder.addOffset方法代码示例

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


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

示例1: addUsername

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addUsername(FlatBufferBuilder builder, int usernameOffset) {
    builder.addOffset(0, usernameOffset, 0);
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:4,代码来源:User.java

示例2: addName

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) {
    builder.addOffset(1, nameOffset, 0);
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:4,代码来源:User.java

示例3: addPurchases

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addPurchases(FlatBufferBuilder builder, int purchasesOffset) {
    builder.addOffset(4, purchasesOffset, 0);
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:4,代码来源:User.java

示例4: createPurchasesVector

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static int createPurchasesVector(FlatBufferBuilder builder, int[] data) {
    builder.startVector(4, data.length, 4);
    for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]);
    return builder.endVector();
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:6,代码来源:User.java

示例5: addId

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addId(FlatBufferBuilder builder, int idOffset) {
    builder.addOffset(0, idOffset, 0);
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:4,代码来源:Purchase.java

示例6: addName

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(1, nameOffset, 0); } 
开发者ID:anirudhramanan,项目名称:flatbuffers-android-demo,代码行数:2,代码来源:Event.java

示例7: addLocation

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addLocation(FlatBufferBuilder builder, int locationOffset) { builder.addOffset(2, locationOffset, 0); } 
开发者ID:anirudhramanan,项目名称:flatbuffers-android-demo,代码行数:2,代码来源:Event.java

示例8: addDate

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addDate(FlatBufferBuilder builder, int dateOffset) { builder.addOffset(3, dateOffset, 0); } 
开发者ID:anirudhramanan,项目名称:flatbuffers-android-demo,代码行数:2,代码来源:Event.java

示例9: addId

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addOffset(0, idOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例10: addGuid

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addGuid(FlatBufferBuilder builder, int guidOffset) { builder.addOffset(2, guidOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例11: addName

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(3, nameOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例12: addGender

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addGender(FlatBufferBuilder builder, int genderOffset) { builder.addOffset(4, genderOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例13: addCompany

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addCompany(FlatBufferBuilder builder, int companyOffset) { builder.addOffset(5, companyOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例14: addEmail

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addEmail(FlatBufferBuilder builder, int emailOffset) { builder.addOffset(6, emailOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java

示例15: addFriends

import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addFriends(FlatBufferBuilder builder, int friendsOffset) { builder.addOffset(7, friendsOffset, 0); } 
开发者ID:xu6148152,项目名称:binea_project_for_android,代码行数:2,代码来源:People.java


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