Lines Matching full:sparsemap
303 var sparseMap []string
316 if (len(sparseMap)%2 == 0 && key != paxGNUSparseOffset) ||
317 (len(sparseMap)%2 == 1 && key != paxGNUSparseNumBytes) ||
321 sparseMap = append(sparseMap, value)
326 if len(sparseMap) > 0 {
327 paxHdrs[paxGNUSparseMap] = strings.Join(sparseMap, ",")
585 // There should be two numbers in sparseMap for each entry.
586 sparseMap := strings.Split(paxHdrs[paxGNUSparseMap], ",")
587 if len(sparseMap) == 1 && sparseMap[0] == "" {
588 sparseMap = sparseMap[:0]
590 if int64(len(sparseMap)) != 2*numEntries {
597 for len(sparseMap) >= 2 {
598 offset, err1 := strconv.ParseInt(sparseMap[0], 10, 64)
599 length, err2 := strconv.ParseInt(sparseMap[1], 10, 64)
604 sparseMap = sparseMap[2:]