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

Method Encode

protocol/net/packet/login/setCompression.go:18–20  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

16}
17
18func (s *SetCompression) Encode(w encoding.Writer) error {
19 return w.VarInt(s.Threshold)
20}
21
22func (s *SetCompression) Decode(r encoding.Reader) error {
23 _, err := r.VarInt(&s.Threshold)

Callers

nothing calls this directly

Calls 1

VarIntMethod · 0.45

Tested by

no test coverage detected