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

Method CodecEncodeSelf

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

Source from the content-addressed store, hash-verified

8170
8171func (testMammoth2Binary) codecSelferViaCodecgen() {}
8172func (x testMammoth2Binary) CodecEncodeSelf(e *Encoder) {
8173 var h codecSelfer19781
8174 z, r := GenHelper().Encoder(e)
8175 _, _, _ = h, z, r
8176 if z.EncBinary() {
8177 z.EncBinaryMarshal(x)
8178 } else {
8179 r.EncodeUint(uint64(x))
8180 }
8181}
8182
8183func (x *testMammoth2Binary) CodecDecodeSelf(d *Decoder) {
8184 var h codecSelfer19781

Callers

nothing calls this directly

Calls 5

GenHelperFunction · 0.85
EncoderMethod · 0.80
EncBinaryMethod · 0.80
EncBinaryMarshalMethod · 0.80
EncodeUintMethod · 0.65

Tested by

no test coverage detected