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

Method ReadRoot

protocol/nbt/staticReader.go:72–82  ·  view source on GitHub ↗
(withName bool)

Source from the content-addressed store, hash-verified

70}
71
72func (r StaticReader) ReadRoot(withName bool) (typeId byte, name string, err error) {
73 typeId, err = r.readByte()
74 if err != nil {
75 return typeId, "", err
76 }
77 if withName {
78 name, err = r.readString()
79 }
80
81 return
82}
83
84func (r StaticReader) Byte(dst *byte) (string, error) {
85 typeId, err := r.readByte()

Callers

nothing calls this directly

Calls 2

readByteMethod · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected