public static Offset <TestTableWithDefaults> CreateTestTableWithDefaults(FlatBufferBuilder builder, int IntProp = 123456, byte ByteProp = 42, short ShortProp = 1024) { builder.StartObject(3); TestTableWithDefaults.AddIntProp(builder, IntProp); TestTableWithDefaults.AddShortProp(builder, ShortProp); TestTableWithDefaults.AddByteProp(builder, ByteProp); return(TestTableWithDefaults.EndTestTableWithDefaults(builder)); }
public static TestTableWithDefaults GetRootAsTestTableWithDefaults(ByteBuffer _bb, TestTableWithDefaults obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }