...
1<?php
2// automatically generated by the FlatBuffers compiler, do not modify
3
4namespace MyGame\Example;
5
6use \Google\FlatBuffers\Struct;
7use \Google\FlatBuffers\Table;
8use \Google\FlatBuffers\ByteBuffer;
9use \Google\FlatBuffers\FlatBufferBuilder;
10
11class StructOfStructsOfStructs extends Struct
12{
13 /**
14 * @param int $_i offset
15 * @param ByteBuffer $_bb
16 * @return StructOfStructsOfStructs
17 **/
18 public function init($_i, ByteBuffer $_bb)
19 {
20 $this->bb_pos = $_i;
21 $this->bb = $_bb;
22 return $this;
23 }
24
25 /**
26 * @return StructOfStructs
27 */
28 public function getA()
29 {
30 $obj = new StructOfStructs();
31 $obj->init($this->bb_pos + 0, $this->bb);
32 return $obj;
33 }
34
35
36 /**
37 * @return int offset
38 */
39 public static function createStructOfStructsOfStructs(FlatBufferBuilder $builder, $a_a_id, $a_a_distance, $a_b_a, $a_b_b, $a_c_id, $a_c_distance)
40 {
41 $builder->prep(4, 20);
42 $builder->prep(4, 20);
43 $builder->prep(4, 8);
44 $builder->putUint($a_c_distance);
45 $builder->putUint($a_c_id);
46 $builder->prep(2, 4);
47 $builder->pad(1);
48 $builder->putSbyte($a_b_b);
49 $builder->putShort($a_b_a);
50 $builder->prep(4, 8);
51 $builder->putUint($a_a_distance);
52 $builder->putUint($a_a_id);
53 return $builder->offset();
54 }
55}
View as plain text