(e *Encoder)
| 1888 | |
| 1889 | func (TestStrucCommon) codecSelferViaCodecgen() {} |
| 1890 | func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) { |
| 1891 | var h codecSelfer19780 |
| 1892 | z, r := GenHelper().Encoder(e) |
| 1893 | _, _, _ = h, z, r |
| 1894 | if z.EncBasicHandle().CheckCircularRef { |
| 1895 | z.EncEncode(x) |
| 1896 | return |
| 1897 | } |
| 1898 | if x == nil { |
| 1899 | r.EncodeNil() |
| 1900 | } else { |
| 1901 | yy2arr2 := z.EncBasicHandle().StructToArray |
| 1902 | _ = yy2arr2 |
| 1903 | const yyr2 bool = false // struct tag has 'toArray' |
| 1904 | var yyn54 bool = x.AnonInTestStrucSlim == nil || x.AnonInTestStrucSlim.P == nil |
| 1905 | var yyn55 bool = x.NotAnonSlim == nil |
| 1906 | var yyn58 bool = x.Nint64 == nil |
| 1907 | if yyr2 || yy2arr2 { |
| 1908 | z.EncWriteArrayStart(56) |
| 1909 | z.EncWriteArrayElem() |
| 1910 | r.EncodeString(string(x.S)) |
| 1911 | z.EncWriteArrayElem() |
| 1912 | r.EncodeInt(int64(x.I64)) |
| 1913 | z.EncWriteArrayElem() |
| 1914 | r.EncodeInt(int64(x.I32)) |
| 1915 | z.EncWriteArrayElem() |
| 1916 | r.EncodeInt(int64(x.I16)) |
| 1917 | z.EncWriteArrayElem() |
| 1918 | r.EncodeInt(int64(x.I8)) |
| 1919 | z.EncWriteArrayElem() |
| 1920 | r.EncodeInt(int64(x.I64n)) |
| 1921 | z.EncWriteArrayElem() |
| 1922 | r.EncodeInt(int64(x.I32n)) |
| 1923 | z.EncWriteArrayElem() |
| 1924 | r.EncodeInt(int64(x.I16n)) |
| 1925 | z.EncWriteArrayElem() |
| 1926 | r.EncodeInt(int64(x.I8n)) |
| 1927 | z.EncWriteArrayElem() |
| 1928 | r.EncodeUint(uint64(x.Ui64)) |
| 1929 | z.EncWriteArrayElem() |
| 1930 | r.EncodeUint(uint64(x.Ui32)) |
| 1931 | z.EncWriteArrayElem() |
| 1932 | r.EncodeUint(uint64(x.Ui16)) |
| 1933 | z.EncWriteArrayElem() |
| 1934 | r.EncodeUint(uint64(x.Ui8)) |
| 1935 | z.EncWriteArrayElem() |
| 1936 | r.EncodeFloat64(float64(x.F64)) |
| 1937 | z.EncWriteArrayElem() |
| 1938 | r.EncodeFloat32(float32(x.F32)) |
| 1939 | z.EncWriteArrayElem() |
| 1940 | r.EncodeBool(bool(x.B)) |
| 1941 | z.EncWriteArrayElem() |
| 1942 | r.EncodeUint(uint64(x.By)) |
| 1943 | z.EncWriteArrayElem() |
| 1944 | if x.Sslice == nil { |
| 1945 | r.EncodeNil() |
| 1946 | } else { |
| 1947 | z.F.EncSliceStringV(x.Sslice, e) |
nothing calls this directly
no test coverage detected