public FooBarT UnPack()
        {
            var _o = new FooBarT();

            this.UnPackTo(_o);
            return(_o);
        }
 public void UnPackTo(FooBarT _o)
 {
     _o.Sibling = this.Sibling.HasValue ? this.Sibling.Value.UnPack() : null;
     _o.Name    = this.Name;
     _o.Rating  = this.Rating;
     _o.Postfix = this.Postfix;
 }
        public static Offset <Benchmark.FBBench.Google.FooBar> Pack(FlatBufferBuilder builder, FooBarT _o)
        {
            if (_o == null)
            {
                return(default(Offset <Benchmark.FBBench.Google.FooBar>));
            }
            var _name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name);

            StartFooBar(builder);
            AddSibling(builder, Benchmark.FBBench.Google.Bar.Pack(builder, _o.Sibling));
            AddName(builder, _name);
            AddRating(builder, _o.Rating);
            AddPostfix(builder, _o.Postfix);
            return(EndFooBar(builder));
        }
        public static Offset <Benchmark.FBBench.Google.FooBar> Pack(FlatBufferBuilder builder, FooBarT _o)
        {
            if (_o == null)
            {
                return(default(Offset <Benchmark.FBBench.Google.FooBar>));
            }
            var _name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name);

            return(CreateFooBar(
                       builder,
                       _o.Sibling,
                       _name,
                       _o.Rating,
                       _o.Postfix));
        }