37 lines
1.0 KiB
Go
Raw Normal View History

2023-11-05 03:26:09 +08:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg;
import (
"demo/luban"
)
import "errors"
type TestDemoE2 struct {
Y1 *int32
Y2 bool
}
const TypeId_TestDemoE2 = -2138341716
func (*TestDemoE2) GetTypeId() int32 {
return -2138341716
}
func NewTestDemoE2(_buf *luban.ByteBuf) (_v *TestDemoE2, err error) {
_v = &TestDemoE2{}
{ var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ int32; { if __x__, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.Y1 = &__x__ }}
{ if _v.Y2, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } }
return
}