public NestedStructT UnPack() { var _o = new NestedStructT(); this.UnPackTo(_o); return(_o); }
public void UnPackTo(NestedStructT _o) { _o.A = new int[2]; for (var _j = 0; _j < 2; ++_j) { _o.A[_j] = this.A(_j); } _o.B = this.B; _o.C = new MyGame.Example.TestEnum[2]; for (var _j = 0; _j < 2; ++_j) { _o.C[_j] = this.C(_j); } _o.D = new long[2]; for (var _j = 0; _j < 2; ++_j) { _o.D[_j] = this.D(_j); } }
public static Offset <MyGame.Example.NestedStruct> Pack(FlatBufferBuilder builder, NestedStructT _o) { if (_o == null) { return(default(Offset <MyGame.Example.NestedStruct>)); } var _a = _o.A; var _c = _o.C; var _d = _o.D; return(CreateNestedStruct( builder, _a, _o.B, _c, _d)); }