(partMap map[int]int)
| 445 | } |
| 446 | |
| 447 | func getPartIdxsFromMap(partMap map[int]int) []int { |
| 448 | var partIdxs []int |
| 449 | for partIdx := range partMap { |
| 450 | partIdxs = append(partIdxs, partIdx) |
| 451 | } |
| 452 | return partIdxs |
| 453 | } |
| 454 | |
| 455 | // returns a map of partIdx to amount of data to write to that part |
| 456 | func (file *WaveFile) computePartMap(startOffset int64, size int64) map[int]int { |