MCPcopy
hub / github.com/ugorji/go / CodecEncodeSelf

Method CodecEncodeSelf

codec/mammoth2_codecgen_generated_test.go:8218–8227  ·  view source on GitHub ↗
(e *Encoder)

Source from the content-addressed store, hash-verified

8216
8217func (testMammoth2Json) codecSelferViaCodecgen() {}
8218func (x testMammoth2Json) CodecEncodeSelf(e *Encoder) {
8219 var h codecSelfer19781
8220 z, r := GenHelper().Encoder(e)
8221 _, _, _ = h, z, r
8222 if !z.EncBinary() && z.IsJSONHandle() {
8223 z.EncJSONMarshal(x)
8224 } else {
8225 r.EncodeUint(uint64(x))
8226 }
8227}
8228
8229func (x *testMammoth2Json) CodecDecodeSelf(d *Decoder) {
8230 var h codecSelfer19781

Callers

nothing calls this directly

Calls 6

GenHelperFunction · 0.85
EncoderMethod · 0.80
EncBinaryMethod · 0.80
EncJSONMarshalMethod · 0.80
EncodeUintMethod · 0.65
IsJSONHandleMethod · 0.45

Tested by

no test coverage detected