(e *Encoder)
| 4074 | |
| 4075 | func (TestStruc) codecSelferViaCodecgen() {} |
| 4076 | func (x *TestStruc) CodecEncodeSelf(e *Encoder) { |
| 4077 | var h codecSelfer19780 |
| 4078 | z, r := GenHelper().Encoder(e) |
| 4079 | _, _, _ = h, z, r |
| 4080 | if z.EncBasicHandle().CheckCircularRef { |
| 4081 | z.EncEncode(x) |
| 4082 | return |
| 4083 | } |
| 4084 | if x == nil { |
| 4085 | r.EncodeNil() |
| 4086 | } else { |
| 4087 | yy2arr2 := z.EncBasicHandle().StructToArray |
| 4088 | _ = yy2arr2 |
| 4089 | const yyr2 bool = false // struct tag has 'toArray' |
| 4090 | var yyn54 bool = x.TestStrucCommon.AnonInTestStrucSlim == nil || x.TestStrucCommon.AnonInTestStrucSlim.P == nil |
| 4091 | var yyn55 bool = x.TestStrucCommon.NotAnonSlim == nil |
| 4092 | var yyn58 bool = x.TestStrucCommon.Nint64 == nil |
| 4093 | var yyn62 bool = x.Nteststruc == nil |
| 4094 | if yyr2 || yy2arr2 { |
| 4095 | z.EncWriteArrayStart(60) |
| 4096 | z.EncWriteArrayElem() |
| 4097 | r.EncodeString(string(x.TestStrucCommon.S)) |
| 4098 | z.EncWriteArrayElem() |
| 4099 | r.EncodeInt(int64(x.TestStrucCommon.I64)) |
| 4100 | z.EncWriteArrayElem() |
| 4101 | r.EncodeInt(int64(x.TestStrucCommon.I32)) |
| 4102 | z.EncWriteArrayElem() |
| 4103 | r.EncodeInt(int64(x.TestStrucCommon.I16)) |
| 4104 | z.EncWriteArrayElem() |
| 4105 | r.EncodeInt(int64(x.TestStrucCommon.I8)) |
| 4106 | z.EncWriteArrayElem() |
| 4107 | r.EncodeInt(int64(x.TestStrucCommon.I64n)) |
| 4108 | z.EncWriteArrayElem() |
| 4109 | r.EncodeInt(int64(x.TestStrucCommon.I32n)) |
| 4110 | z.EncWriteArrayElem() |
| 4111 | r.EncodeInt(int64(x.TestStrucCommon.I16n)) |
| 4112 | z.EncWriteArrayElem() |
| 4113 | r.EncodeInt(int64(x.TestStrucCommon.I8n)) |
| 4114 | z.EncWriteArrayElem() |
| 4115 | r.EncodeUint(uint64(x.TestStrucCommon.Ui64)) |
| 4116 | z.EncWriteArrayElem() |
| 4117 | r.EncodeUint(uint64(x.TestStrucCommon.Ui32)) |
| 4118 | z.EncWriteArrayElem() |
| 4119 | r.EncodeUint(uint64(x.TestStrucCommon.Ui16)) |
| 4120 | z.EncWriteArrayElem() |
| 4121 | r.EncodeUint(uint64(x.TestStrucCommon.Ui8)) |
| 4122 | z.EncWriteArrayElem() |
| 4123 | r.EncodeFloat64(float64(x.TestStrucCommon.F64)) |
| 4124 | z.EncWriteArrayElem() |
| 4125 | r.EncodeFloat32(float32(x.TestStrucCommon.F32)) |
| 4126 | z.EncWriteArrayElem() |
| 4127 | r.EncodeBool(bool(x.TestStrucCommon.B)) |
| 4128 | z.EncWriteArrayElem() |
| 4129 | r.EncodeUint(uint64(x.TestStrucCommon.By)) |
| 4130 | z.EncWriteArrayElem() |
| 4131 | if x.TestStrucCommon.Sslice == nil { |
| 4132 | r.EncodeNil() |
| 4133 | } else { |
nothing calls this directly
no test coverage detected