(dst *string)
| 154 | } |
| 155 | |
| 156 | func (r StaticReader) String(dst *string) (string, error) { |
| 157 | typeId, err := r.readByte() |
| 158 | if err != nil { |
| 159 | return "", err |
| 160 | } |
| 161 | if typeId != String { |
| 162 | return "", fmt.Errorf("tried reading TAG_String, got %d", typeId) |
| 163 | } |
| 164 | |
| 165 | name, err := r.readString() |
| 166 | if err != nil { |
| 167 | return "", err |
| 168 | } |
| 169 | |
| 170 | *dst, err = r.readString() |
| 171 | return name, err |
| 172 | } |
| 173 | |
| 174 | func (r StaticReader) Compound(dst *CompoundReader) (string, error, bool) { |
| 175 | typeId, err := r.readByte() |
no test coverage detected