Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 1839 | |
| 1840 | // Benchmark harness support for STK-REQ-004. |
| 1841 | func (x *DSUser) CodecDecodeSelf(d *codec1978.Decoder) { |
| 1842 | var h codecSelfer6617 |
| 1843 | z, r := codec1978.GenHelperDecoder(d) |
| 1844 | _, _, _ = h, z, r |
| 1845 | if false { |
| 1846 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 1847 | z.DecExtension(x, yyxt1) |
| 1848 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 1849 | z.DecJSONUnmarshal(x) |
| 1850 | } else { |
| 1851 | yyct2 := r.ContainerType() |
| 1852 | if yyct2 == codecSelferValueTypeMap6617 { |
| 1853 | yyl2 := r.ReadMapStart() |
| 1854 | if yyl2 == 0 { |
| 1855 | r.ReadMapEnd() |
| 1856 | } else { |
| 1857 | x.codecDecodeSelfFromMap(yyl2, d) |
| 1858 | } |
| 1859 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 1860 | yyl2 := r.ReadArrayStart() |
| 1861 | if yyl2 == 0 { |
| 1862 | r.ReadArrayEnd() |
| 1863 | } else { |
| 1864 | x.codecDecodeSelfFromArray(yyl2, d) |
| 1865 | } |
| 1866 | } else { |
| 1867 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 1868 | } |
| 1869 | } |
| 1870 | } |
| 1871 | |
| 1872 | // Benchmark harness support for STK-REQ-004. |
| 1873 | func (x *DSUser) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
nothing calls this directly
no test coverage detected