public static int createRomsVector(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();
 }
 public static void addErrorMsg(FlatBufferBuilder builder, int errorMsgOffset) {
   builder.addOffset(1, errorMsgOffset, 0);
 }
 public static void addRoms(FlatBufferBuilder builder, int romsOffset) {
   builder.addOffset(0, romsOffset, 0);
 }
 public static void addData(FlatBufferBuilder builder, int dataOffset) {
   builder.addOffset(3, dataOffset, 0);
 }
 public static void addPath(FlatBufferBuilder builder, int pathOffset) {
   builder.addOffset(0, pathOffset, 0);
 }
 public static void addName(FlatBufferBuilder builder, int nameOffset) {
   builder.addOffset(3, nameOffset, 0);
 }
예제 #7
0
 public static void addFooTable(FlatBufferBuilder builder, int fooTableOffset) {
   builder.addOffset(0, fooTableOffset, 0);
 }
 public static void addTest(FlatBufferBuilder builder, int testOffset) {
   builder.addOffset(8, testOffset, 0);
 }
 public static void addInventory(FlatBufferBuilder builder, int inventoryOffset) {
   builder.addOffset(5, inventoryOffset, 0);
 }
 public static void addBootBlockdev(FlatBufferBuilder builder, int bootBlockdevOffset) {
   builder.addOffset(1, bootBlockdevOffset, 0);
 }
 public static void addLabel(FlatBufferBuilder builder, int labelOffset) {
   builder.addOffset(2, labelOffset, 0);
 }
예제 #12
0
 public static void addId(FlatBufferBuilder builder, int idOffset) {
   builder.addOffset(0, idOffset, 0);
 }