//------------------------------------------------------------------------------ // // 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 TestDemoD2 struct { X1 int32 X2 int32 } const TypeId_TestDemoD2 = -2138341747 func (*TestDemoD2) GetTypeId() int32 { return -2138341747 } func NewTestDemoD2(_buf *luban.ByteBuf) (_v *TestDemoD2, err error) { _v = &TestDemoD2{} { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.X2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } return }