(buf []byte, cursor *int)
| 195 | } |
| 196 | |
| 197 | func (dec *Decoder) readListPackEntryAsInt(buf []byte, cursor *int) (int64, error) { |
| 198 | str, intval, _, err := dec.readListPackEntry(buf, cursor) |
| 199 | if err != nil { |
| 200 | return 0, fmt.Errorf("read from failed: %v", err) |
| 201 | } |
| 202 | if str != nil { |
| 203 | return 0, fmt.Errorf("%s is not a integer", string(str)) |
| 204 | } |
| 205 | return intval, nil |
| 206 | } |
no test coverage detected