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

Method Encode

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

Source from the content-addressed store, hash-verified

55}
56
57func (s StatusResponse) Encode(w encoding.Writer) error {
58 data, err := json.Marshal(s.Data)
59 if err != nil {
60 return err
61 }
62 return w.ByteArray(data)
63}
64
65func (s *StatusResponse) Decode(r encoding.Reader) error {
66 var data []byte

Callers

nothing calls this directly

Calls 1

ByteArrayMethod · 0.45

Tested by

no test coverage detected