Example #1
0
 public function getReferToA2()
 {
     $obj = new SecondTableInA();
     $o = $this->__offset(6);
     return $o != 0 ? $obj->init($this->__indirect($o + $this->bb_pos), $this->bb) : 0;
 }
Example #2
0
 /**
  * @param ByteBuffer $bb
  * @return SecondTableInA
  */
 public static function getRootAsSecondTableInA(ByteBuffer $bb)
 {
     $obj = new SecondTableInA();
     return $obj->init($bb->getInt($bb->getPosition()) + $bb->getPosition(), $bb);
 }