//------------------------------------------------------------------------------ // // 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 TestTestString struct { Id string S1 string S2 string Cs1 *TestCompactString Cs2 *TestCompactString } const TypeId_TestTestString = 338485823 func (*TestTestString) GetTypeId() int32 { return 338485823 } func NewTestTestString(_buf *luban.ByteBuf) (_v *TestTestString, err error) { _v = &TestTestString{} { if _v.Id, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.S1, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.Cs1, err = NewTestCompactString(_buf); err != nil { err = errors.New("error"); return } } { if _v.Cs2, err = NewTestCompactString(_buf); err != nil { err = errors.New("error"); return } } return }