(dst *byte)
| 82 | } |
| 83 | |
| 84 | func (r StaticReader) Byte(dst *byte) (string, error) { |
| 85 | typeId, err := r.readByte() |
| 86 | if err != nil { |
| 87 | return "", err |
| 88 | } |
| 89 | if typeId != Byte { |
| 90 | return "", fmt.Errorf("tried reading TAG_Byte, got %d", typeId) |
| 91 | } |
| 92 | |
| 93 | name, err := r.readString() |
| 94 | if err != nil { |
| 95 | return "", err |
| 96 | } |
| 97 | |
| 98 | *dst, err = r.readByte() |
| 99 | return name, err |
| 100 | } |
| 101 | |
| 102 | func (r StaticReader) Short(dst *int16) (string, error) { |
| 103 | typeId, err := r.readByte() |
nothing calls this directly
no test coverage detected