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

Method Decode

protocol/net/packet/play/deleteMessage.go:29–37  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

27}
28
29func (b *DeleteMessage) Decode(r encoding.Reader) error {
30 if _, err := r.VarInt(&b.MessageId); err != nil {
31 return err
32 }
33 if b.MessageId == -1 {
34 return r.FixedByteArray(b.Signature[:])
35 }
36 return nil
37}

Callers

nothing calls this directly

Calls 2

VarIntMethod · 0.45
FixedByteArrayMethod · 0.45

Tested by

no test coverage detected