MCPcopy Create free account
hub / github.com/weaveworks/scope / CodecEncodeSelf

Method CodecEncodeSelf

report/node_set.go:163–169  ·  view source on GitHub ↗

CodecEncodeSelf implements codec.Selfer

(encoder *codec.Encoder)

Source from the content-addressed store, hash-verified

161
162// CodecEncodeSelf implements codec.Selfer
163func (n *NodeSet) CodecEncodeSelf(encoder *codec.Encoder) {
164 if n.psMap != nil {
165 encoder.Encode(n.toIntermediate())
166 } else {
167 encoder.Encode(nil)
168 }
169}
170
171// CodecDecodeSelf implements codec.Selfer
172func (n *NodeSet) CodecDecodeSelf(decoder *codec.Decoder) {

Callers

nothing calls this directly

Calls 1

toIntermediateMethod · 0.95

Tested by

no test coverage detected