Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for formatOctal (0.04 sec)

  1. src/archive/tar/writer.go

    	var f formatter
    	v7 := tw.blk.toV7()
    	v7.typeFlag()[0] = flag
    	f.formatString(v7.name(), name)
    	f.formatOctal(v7.mode(), 0)
    	f.formatOctal(v7.uid(), 0)
    	f.formatOctal(v7.gid(), 0)
    	f.formatOctal(v7.size(), int64(len(data))) // Must be < 8GiB
    	f.formatOctal(v7.modTime(), 0)
    	tw.blk.setFormat(format)
    	if f.err != nil {
    		return f.err // Only occurs if size condition is violated
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  2. src/archive/tar/format.go

    	// Update checksum.
    	// This field is special in that it is terminated by a NULL then space.
    	var f formatter
    	field := b.toV7().chksum()
    	chksum, _ := b.computeChecksum() // Possible values are 256..128776
    	f.formatOctal(field[:7], chksum) // Never fails since 128776 < 262143
    	field[7] = ' '
    }
    
    // computeChecksum computes the checksum for the header block.
    // POSIX specifies a sum of the unsigned byte values, but the Sun tar used
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
Back to top