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

Method Encode

protocol/net/packet/play/deleteMessage.go:19–27  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

17}
18
19func (b *DeleteMessage) Encode(w encoding.Writer) error {
20 if err := w.VarInt(b.MessageId + 1); err != nil {
21 return err
22 }
23 if b.MessageId == -1 {
24 return w.FixedByteArray(b.Signature[:])
25 }
26 return nil
27}
28
29func (b *DeleteMessage) Decode(r encoding.Reader) error {
30 if _, err := r.VarInt(&b.MessageId); err != nil {

Callers

nothing calls this directly

Calls 2

VarIntMethod · 0.45
FixedByteArrayMethod · 0.45

Tested by

no test coverage detected