MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Encode

Method Encode

protocol/net/packet/status/ping.go:15–17  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

13}
14
15func (p Ping) Encode(w encoding.Writer) error {
16 return w.Long(p.Payload)
17}
18
19func (p *Ping) Decode(r encoding.Reader) error {
20 return r.Long(&p.Payload)

Callers

nothing calls this directly

Calls 1

LongMethod · 0.45

Tested by

no test coverage detected