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

Method Short

protocol/nbt/staticReader.go:102–118  ·  view source on GitHub ↗
(dst *int16)

Source from the content-addressed store, hash-verified

100}
101
102func (r StaticReader) Short(dst *int16) (string, error) {
103 typeId, err := r.readByte()
104 if err != nil {
105 return "", err
106 }
107 if typeId != Short {
108 return "", fmt.Errorf("tried reading TAG_Short, got %d", typeId)
109 }
110
111 name, err := r.readString()
112 if err != nil {
113 return "", err
114 }
115
116 *dst, err = r.readShort()
117 return name, err
118}
119
120func (r StaticReader) Int(dst *int32) (string, error) {
121 typeId, err := r.readByte()

Callers

nothing calls this directly

Calls 3

readByteMethod · 0.95
readStringMethod · 0.95
readShortMethod · 0.95

Tested by

no test coverage detected