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

Method Decode

protocol/net/packet/play/playerSession.go:35–46  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

33}
34
35func (p *PlayerSession) Decode(r encoding.Reader) error {
36 if err := r.UUID(&p.SessionID); err != nil {
37 return err
38 }
39 if err := r.Long(&p.ExpiresAt); err != nil {
40 return err
41 }
42 if err := r.ByteArray(&p.PublicKey); err != nil {
43 return err
44 }
45 return r.ByteArray(&p.KeySignature)
46}

Callers

nothing calls this directly

Calls 3

UUIDMethod · 0.45
LongMethod · 0.45
ByteArrayMethod · 0.45

Tested by

no test coverage detected