(dst *CompoundReader)
| 172 | } |
| 173 | |
| 174 | func (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 | |
| 195 | type CompoundReader struct { |
| 196 | r StaticReader |
nothing calls this directly
no test coverage detected