Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for chku32 (0.1 sec)

  1. src/archive/tar/format.go

    func (b *block) getFormat() Format {
    	// Verify checksum.
    	var p parser
    	value := p.parseOctal(b.toV7().chksum())
    	chksum1, chksum2 := b.computeChecksum()
    	if p.err != nil || (value != chksum1 && value != chksum2) {
    		return FormatUnknown
    	}
    
    	// Guess the magic values.
    	magic := string(b.toUSTAR().magic())
    	version := string(b.toUSTAR().version())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/debug/elf/file.go

    		if s.Flags&SHF_COMPRESSED == 0 {
    			s.ReaderAt = s.sr
    			s.Size = s.FileSize
    		} else {
    			// Read the compression header.
    			switch f.Class {
    			case ELFCLASS32:
    				var ch Chdr32
    				chdata := make([]byte, unsafe.Sizeof(ch))
    				if _, err := s.sr.ReadAt(chdata, 0); err != nil {
    					return nil, err
    				}
    				s.compressionType = CompressionType(bo.Uint32(chdata[unsafe.Offsetof(ch.Type):]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top