Ejemplo n.º 1
0
 public static int CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(B);
   builder.PutShort(A);
   return builder.Offset();
 }
Ejemplo n.º 2
0
 public static Offset<Vec3> CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z, double Test1, Color Test2, short test3_A, sbyte test3_B) {
   builder.Prep(16, 32);
   builder.Pad(2);
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(test3_B);
   builder.PutShort(test3_A);
   builder.Pad(1);
   builder.PutSbyte((sbyte)(Test2));
   builder.PutDouble(Test1);
   builder.Pad(4);
   builder.PutFloat(Z);
   builder.PutFloat(Y);
   builder.PutFloat(X);
   return new Offset<Vec3>(builder.Offset);
 }
Ejemplo n.º 3
0
 public static int CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z, double Test1, Color Test2, short Test_A, sbyte Test_B) {
   builder.Prep(16, 32);
   builder.Pad(2);
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(Test_B);
   builder.PutShort(Test_A);
   builder.Pad(1);
   builder.PutSbyte((sbyte)(Test2));
   builder.PutDouble(Test1);
   builder.Pad(4);
   builder.PutFloat(Z);
   builder.PutFloat(Y);
   builder.PutFloat(X);
   return builder.Offset();
 }
Ejemplo n.º 4
0
 public static Offset<Test> CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(B);
   builder.PutShort(A);
   return new Offset<Test>(builder.Offset);
 }