Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for magicUSTAR (0.18 sec)

  1. src/archive/tar/format.go

    	// Guess the magic values.
    	magic := string(b.toUSTAR().magic())
    	version := string(b.toUSTAR().version())
    	trailer := string(b.toSTAR().trailer())
    	switch {
    	case magic == magicUSTAR && trailer == trailerSTAR:
    		return formatSTAR
    	case magic == magicUSTAR:
    		return FormatUSTAR | FormatPAX
    	case magic == magicGNU && version == versionGNU:
    		return FormatGNU
    	default:
    		return formatV7
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
Back to top