示例#1
0
 // Structs are stored inline, so nothing additional is being added. `d` is always 0.
 public void addStruct(int voffset, int x, int d) {
   if (x != d) {
     Nested(x);
     slot(voffset);
   }
 }
示例#2
0
 public void addDouble(int o, double x, double d) {
   if (force_defaults || x != d) {
     addDouble(x);
     slot(o);
   }
 }
示例#3
0
 public void addOffset(int o, int x, int d) {
   if (force_defaults || x != d) {
     addOffset(x);
     slot(o);
   }
 }
示例#4
0
 public void addFloat(int o, float x, double d) {
   if (force_defaults || x != d) {
     addFloat(x);
     slot(o);
   }
 }
示例#5
0
 public void addLong(int o, long x, long d) {
   if (force_defaults || x != d) {
     addLong(x);
     slot(o);
   }
 }
示例#6
0
 public void addShort(int o, short x, int d) {
   if (force_defaults || x != d) {
     addShort(x);
     slot(o);
   }
 }
示例#7
0
 public void addByte(int o, byte x, int d) {
   if (force_defaults || x != d) {
     addByte(x);
     slot(o);
   }
 }
示例#8
0
 // Add a scalar to a table at `o` into its vtable, with value `x` and default `d`
 public void addBoolean(int o, boolean x, boolean d) {
   if (force_defaults || x != d) {
     addBoolean(x);
     slot(o);
   }
 }