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

Method Compound

protocol/nbt/staticReader.go:174–193  ·  view source on GitHub ↗
(dst *CompoundReader)

Source from the content-addressed store, hash-verified

172}
173
174func (r StaticReader) Compound(dst *CompoundReader) (string, error, bool) {
175 typeId, err := r.readByte()
176 if err != nil {
177 return "", err, false
178 }
179 if typeId == End {
180 return "", nil, true
181 }
182 if typeId != Compound {
183 return "", fmt.Errorf("tried reading TAG_Compound, got %d", typeId), false
184 }
185
186 name, err := r.readString()
187 if err != nil {
188 return "", err, false
189 }
190
191 *dst = CompoundReader{r}
192 return name, err, false
193}
194
195type CompoundReader struct {
196 r StaticReader

Callers

nothing calls this directly

Calls 2

readByteMethod · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected