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 int createDataVector(FlatBufferBuilder builder, byte[] data) {
   builder.startVector(1, data.length, 1);
   for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]);
   return builder.endVector();
 }