Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for different (0.24 sec)

  1. internal/etag/reader.go

    			}
    		}
    	}
    	return n, err
    }
    
    // ETag returns the ETag of all the content read
    // so far. Reading more content changes the MD5
    // checksum. Therefore, calling ETag multiple
    // times may return different results.
    func (r *Reader) ETag() ETag {
    	sum := r.md5.Sum(nil)
    	return ETag(sum)
    }
    
    // VerifyError is an error signaling that a
    // computed ETag does not match an expected
    // ETag.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	// Make sure that the input format is GNU.
    	// Unfortunately, the STAR format also has a sparse header format that uses
    	// the same type flag but has a completely different layout.
    	if blk.getFormat() != FormatGNU {
    		return nil, ErrHeader
    	}
    	hdr.Format.mayOnlyBe(FormatGNU)
    
    	var p parser
    	hdr.Size = p.parseNumeric(blk.toGNU().realSize())
    	if p.err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. internal/hash/reader.go

    		return t.ETag()
    	}
    	return nil
    }
    
    // MD5Current returns the MD5 checksum of the content
    // that has been read so far.
    //
    // Calling MD5Current again after reading more data may
    // result in a different checksum.
    func (r *Reader) MD5Current() []byte {
    	if r.disableMD5 {
    		return r.checksum
    	}
    	return r.ETag()[:]
    }
    
    // SHA256 returns the SHA256 checksum set as reference value.
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    	}
    	b := readBuf(buf[:12])
    	if b.uint32() != f.CRC32 {
    		return ErrChecksum
    	}
    
    	// The two sizes that follow here can be either 32 bits or 64 bits
    	// but the spec is not very clear on this and different
    	// interpretations has been made causing incompatibilities. We
    	// already have the sizes from the central directory so we can
    	// just ignore these.
    
    	return nil
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top