Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 82 for cSrc (0.06 sec)

  1. cmd/erasure-sets_test.go

    	}
    
    	if sipHashElement := hashKey("UNKNOWN", "This will fail", 0, testUUID); sipHashElement != -1 {
    		t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement)
    	}
    }
    
    // TestCrcHashMod - test crc hash.
    func TestCrcHashMod(t *testing.T) {
    	testCases := []struct {
    		objectName string
    		crcHash    int
    	}{
    		// cases which should pass the test.
    		// passing in valid object name.
    		{"object", 28},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    				hash.ChecksumSHA256.String(): part.ChecksumSHA256,
    			}
    			if wantCS[checksumType.String()] != crc {
    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    					ExpETag:    wantCS[checksumType.String()],
    					GotETag:    crc,
    				}
    			}
    			cs := hash.NewChecksumString(checksumType.String(), crc)
    			if !cs.Valid() {
    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    				}
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  3. src/time/zoneinfo_read.go

    		// zip entry layout:
    		//	0	magic[4]
    		//	4	madevers[1]
    		//	5	madeos[1]
    		//	6	extvers[1]
    		//	7	extos[1]
    		//	8	flags[2]
    		//	10	meth[2]
    		//	12	modtime[2]
    		//	14	moddate[2]
    		//	16	crc[4]
    		//	20	csize[4]
    		//	24	uncsize[4]
    		//	28	namelen[2]
    		//	30	xlen[2]
    		//	32	fclen[2]
    		//	34	disknum[2]
    		//	36	iattr[2]
    		//	38	eattr[4]
    		//	42	off[4]
    		//	46	name[namelen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. src/compress/gzip/gzip.go

    	Header      // written at first call to Write, Flush, or Close
    	w           io.Writer
    	level       int
    	wroteHeader bool
    	closed      bool
    	buf         [10]byte
    	compressor  *flate.Writer
    	digest      uint32 // CRC-32, IEEE polynomial (section 8)
    	size        uint32 // Uncompressed size (section 2.3.1)
    	err         error
    }
    
    // NewWriter returns a new [Writer].
    // Writes to the returned writer are compressed and written to w.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1_gen.go

    				err = msgp.WrapError(err, "ModTime")
    				return
    			}
    		case "index":
    			z.Index, err = dc.ReadBytes(z.Index)
    			if err != nil {
    				err = msgp.WrapError(err, "Index")
    				return
    			}
    		case "crc":
    			var zb0002 uint32
    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Checksums")
    				return
    			}
    			if z.Checksums == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. src/image/png/writer_test.go

    				}
    			}
    
    			// Encode the image
    			var b bytes.Buffer
    			if err := Encode(&b, m0); err != nil {
    				t.Error(err)
    				return
    			}
    			const chunkFieldsLength = 12 // 4 bytes for length, name and crc
    			data := b.Bytes()
    			i = len(pngHeader)
    
    			for i < len(data)-chunkFieldsLength {
    				length := binary.BigEndian.Uint32(data[i : i+4])
    				name := string(data[i+4 : i+8])
    
    				switch name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 08:14:05 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  7. src/compress/gzip/gunzip.go

    // marking the end of the data.
    type Reader struct {
    	Header       // valid after NewReader or Reader.Reset
    	r            flate.Reader
    	decompressor io.ReadCloser
    	digest       uint32 // CRC-32, IEEE polynomial (section 8)
    	size         uint32 // Uncompressed size (section 2.3.1)
    	buf          [512]byte
    	err          error
    	multistream  bool
    }
    
    // NewReader creates a new [Reader] reading the given reader.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. cmd/xl-storage-meta-inline.go

    		// First version to carry data.
    		return buf
    	}
    	// Skip header
    	_, metaBuf, err = msgp.ReadBytesZC(metaBuf)
    	if err != nil {
    		storageLogIf(GlobalContext, err)
    		return buf
    	}
    	// Skip CRC
    	if maj > 1 || min >= 2 {
    		_, metaBuf, err = msgp.ReadUint32Bytes(metaBuf)
    		storageLogIf(GlobalContext, err)
    	}
    	//   =  input - current pos
    	ends := len(buf) - len(metaBuf)
    	if ends > len(buf) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. internal/hash/reader.go

    }
    
    // ContentCRCType returns the content checksum type.
    func (r *Reader) ContentCRCType() ChecksumType {
    	return r.contentHash.Type
    }
    
    // ContentCRC returns the content crc if set.
    func (r *Reader) ContentCRC() map[string]string {
    	if r.contentHash.Type == ChecksumNone || !r.contentHash.Valid() {
    		return nil
    	}
    	if r.contentHash.Type.Trailing() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  10. cmd/bucket-replication.go

    		}
    		if err != nil {
    			return err
    		}
    
    		cHeader := http.Header{}
    		cHeader.Add(xhttp.MinIOSourceReplicationRequest, "true")
    		if !isSSEC {
    			crc := getCRCMeta(objInfo, partInfo.Number, nil) // No SSE-C keys here.
    			for k, v := range crc {
    				cHeader.Add(k, v)
    			}
    		}
    		popts := minio.PutObjectPartOptions{
    			SSE:          opts.ServerSideEncryption,
    			CustomHeader: cHeader,
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
Back to top