(r util.Reader, count uint64)
| 187 | } |
| 188 | |
| 189 | func readCRC(r util.Reader, count uint64) ([]uint32, error) { |
| 190 | if err := checkUint64(count, true); err != nil { |
| 191 | return nil, err |
| 192 | } |
| 193 | |
| 194 | defined, err := readOptionalBool(r, count) |
| 195 | if err != nil { |
| 196 | return nil, err |
| 197 | } |
| 198 | |
| 199 | crcs := make([]uint32, count) |
| 200 | |
| 201 | for i := range defined { |
| 202 | if defined[i] { |
| 203 | if err := binary.Read(r, binary.LittleEndian, &crcs[i]); err != nil { |
| 204 | return nil, fmt.Errorf("readCRC: Read error: %w", err) |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | return crcs, nil |
| 210 | } |
| 211 | |
| 212 | //nolint:cyclop |
| 213 | func readPackInfo(r util.Reader) (*packInfo, error) { |
no test coverage detected
searching dependent graphs…