Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SA (0.13 sec)

  1. src/archive/tar/writer.go

    			// Format the sparse map.
    			formatSPD := func(sp sparseDatas, sa sparseArray) sparseDatas {
    				for i := 0; len(sp) > 0 && i < sa.MaxEntries(); i++ {
    					f.formatNumeric(sa.Entry(i).Offset(), sp[0].Offset)
    					f.formatNumeric(sa.Entry(i).Length(), sp[0].Length)
    					sp = sp[1:]
    				}
    				if len(sp) > 0 {
    					sa.IsExtended()[0] = 1
    				}
    				return sp
    			}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    		}
    	}
    }
    
    func TestReadOldGNUSparseMap(t *testing.T) {
    	populateSparseMap := func(sa sparseArray, sps []string) []string {
    		for i := 0; len(sps) > 0 && i < sa.maxEntries(); i++ {
    			copy(sa.entry(i), sps[0])
    			sps = sps[1:]
    		}
    		if len(sps) > 0 {
    			copy(sa.isExtended(), "\x80")
    		}
    		return sps
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		identity = "   "
    	)
    	var ss []string
    	sa := strings.Split(strings.TrimSpace(hex.Dump(a)), "\n")
    	sb := strings.Split(strings.TrimSpace(hex.Dump(b)), "\n")
    	for len(sa) > 0 && len(sb) > 0 {
    		if sa[0] == sb[0] {
    			ss = append(ss, identity+sa[0])
    		} else {
    			ss = append(ss, uniqueA+sa[0])
    			ss = append(ss, uniqueB+sb[0])
    		}
    		sa, sb = sa[1:], sb[1:]
    	}
    	for len(sa) > 0 {
    		ss = append(ss, uniqueA+sa[0])
    		sa = sa[1:]
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top