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();
 }
 public static void addTestType(FlatBufferBuilder builder, byte testType) {
   builder.addByte(7, testType, 0);
 }
 public static void addFooEnum(FlatBufferBuilder builder, byte fooEnum) {
   builder.addByte(1, fooEnum, 0);
 }
 public static void addColor(FlatBufferBuilder builder, byte color) {
   builder.addByte(6, color, 3);
 }