本文整理汇总了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);
}
示例2: addName
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) {
builder.addOffset(1, nameOffset, 0);
}
示例3: addPurchases
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addPurchases(FlatBufferBuilder builder, int purchasesOffset) {
builder.addOffset(4, purchasesOffset, 0);
}
示例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();
}
示例5: addId
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addId(FlatBufferBuilder builder, int idOffset) {
builder.addOffset(0, idOffset, 0);
}
示例6: addName
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(1, nameOffset, 0); }
示例7: addLocation
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addLocation(FlatBufferBuilder builder, int locationOffset) { builder.addOffset(2, locationOffset, 0); }
示例8: addDate
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addDate(FlatBufferBuilder builder, int dateOffset) { builder.addOffset(3, dateOffset, 0); }
示例9: addId
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addOffset(0, idOffset, 0); }
示例10: addGuid
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addGuid(FlatBufferBuilder builder, int guidOffset) { builder.addOffset(2, guidOffset, 0); }
示例11: addName
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(3, nameOffset, 0); }
示例12: addGender
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addGender(FlatBufferBuilder builder, int genderOffset) { builder.addOffset(4, genderOffset, 0); }
示例13: addCompany
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addCompany(FlatBufferBuilder builder, int companyOffset) { builder.addOffset(5, companyOffset, 0); }
示例14: addEmail
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addEmail(FlatBufferBuilder builder, int emailOffset) { builder.addOffset(6, emailOffset, 0); }
示例15: addFriends
import com.google.flatbuffers.FlatBufferBuilder; //导入方法依赖的package包/类
public static void addFriends(FlatBufferBuilder builder, int friendsOffset) { builder.addOffset(7, friendsOffset, 0); }