//------------------------------------------------------------------------------ // // 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 TestCompactString struct { Id int32 S2 string S3 string } const TypeId_TestCompactString = 1968089240 func (*TestCompactString) GetTypeId() int32 { return 1968089240 } func NewTestCompactString(_buf *luban.ByteBuf) (_v *TestCompactString, err error) { _v = &TestCompactString{} { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.S3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } return }