(dst *int32)
| 118 | } |
| 119 | |
| 120 | func (r StaticReader) Int(dst *int32) (string, error) { |
| 121 | typeId, err := r.readByte() |
| 122 | if err != nil { |
| 123 | return "", err |
| 124 | } |
| 125 | if typeId != Int { |
| 126 | return "", fmt.Errorf("tried reading TAG_Int, got %d", typeId) |
| 127 | } |
| 128 | |
| 129 | name, err := r.readString() |
| 130 | if err != nil { |
| 131 | return "", err |
| 132 | } |
| 133 | |
| 134 | *dst, err = r.readInt() |
| 135 | return name, err |
| 136 | } |
| 137 | |
| 138 | func (r StaticReader) Long(dst *int64) (string, error) { |
| 139 | typeId, err := r.readByte() |
no test coverage detected