Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseNumeric (0.09 sec)

  1. src/archive/tar/reader.go

    	hdr.Typeflag = v7.typeFlag()[0]
    	hdr.Name = p.parseString(v7.name())
    	hdr.Linkname = p.parseString(v7.linkName())
    	hdr.Size = p.parseNumeric(v7.size())
    	hdr.Mode = p.parseNumeric(v7.mode())
    	hdr.Uid = int(p.parseNumeric(v7.uid()))
    	hdr.Gid = int(p.parseNumeric(v7.gid()))
    	hdr.ModTime = time.Unix(p.parseNumeric(v7.modTime()), 0)
    
    	// Unpack format specific fields.
    	if format > formatV7 {
    		ustar := tr.blk.toUSTAR()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    	binBits := uint(n-1) * 8
    	return n >= 9 || (x >= -1<<binBits && x < 1<<binBits)
    }
    
    // parseNumeric parses the input as being encoded in either base-256 or octal.
    // This function may return negative numbers.
    // If parsing fails or an integer overflow occurs, err will be set.
    func (p *parser) parseNumeric(b []byte) int64 {
    	// Check for base-256 (binary) format first.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top