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

Method Encode

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

Source from the content-addressed store, hash-verified

18}
19
20func (l *LoginPluginRequest) Encode(w encoding.Writer) error {
21 if err := w.VarInt(l.MessageID); err != nil {
22 return err
23 }
24 if err := w.Identifier(l.Channel); err != nil {
25 return err
26 }
27 return w.FixedByteArray(l.Data)
28}
29
30func (l *LoginPluginRequest) Decode(r encoding.Reader) error {
31 if _, err := r.VarInt(&l.MessageID); err != nil {

Callers

nothing calls this directly

Calls 3

VarIntMethod · 0.45
IdentifierMethod · 0.45
FixedByteArrayMethod · 0.45

Tested by

no test coverage detected