//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg; import ( "demo/luban" ) import "errors" type TestFoo struct { Y1 int32 Y2 int32 Y3 int32 } const TypeId_TestFoo = -1147950774 func (*TestFoo) GetTypeId() int32 { return -1147950774 } func NewTestFoo(_buf *luban.ByteBuf) (_v *TestFoo, err error) { _v = &TestFoo{} { if _v.Y1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.Y2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.Y3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } return }