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

Method Byte

protocol/nbt/staticReader.go:84–100  ·  view source on GitHub ↗
(dst *byte)

Source from the content-addressed store, hash-verified

82}
83
84func (r StaticReader) Byte(dst *byte) (string, error) {
85 typeId, err := r.readByte()
86 if err != nil {
87 return "", err
88 }
89 if typeId != Byte {
90 return "", fmt.Errorf("tried reading TAG_Byte, got %d", typeId)
91 }
92
93 name, err := r.readString()
94 if err != nil {
95 return "", err
96 }
97
98 *dst, err = r.readByte()
99 return name, err
100}
101
102func (r StaticReader) Short(dst *int16) (string, error) {
103 typeId, err := r.readByte()

Callers

nothing calls this directly

Calls 2

readByteMethod · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected