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

Method Long

protocol/nbt/staticReader.go:138–154  ·  view source on GitHub ↗
(dst *int64)

Source from the content-addressed store, hash-verified

136}
137
138func (r StaticReader) Long(dst *int64) (string, error) {
139 typeId, err := r.readByte()
140 if err != nil {
141 return "", err
142 }
143 if typeId != Long {
144 return "", fmt.Errorf("tried reading TAG_Long, got %d", typeId)
145 }
146
147 name, err := r.readString()
148 if err != nil {
149 return "", err
150 }
151
152 *dst, err = r.readLong()
153 return name, err
154}
155
156func (r StaticReader) String(dst *string) (string, error) {
157 typeId, err := r.readByte()

Callers

nothing calls this directly

Calls 3

readByteMethod · 0.95
readStringMethod · 0.95
readLongMethod · 0.95

Tested by

no test coverage detected