Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Sum32 (0.06 sec)

  1. src/hash/fnv/fnv.go

    	s[1] = offset128Lower
    	return &s
    }
    
    func (s *sum32) Reset()   { *s = offset32 }
    func (s *sum32a) Reset()  { *s = offset32 }
    func (s *sum64) Reset()   { *s = offset64 }
    func (s *sum64a) Reset()  { *s = offset64 }
    func (s *sum128) Reset()  { s[0] = offset128Higher; s[1] = offset128Lower }
    func (s *sum128a) Reset() { s[0] = offset128Higher; s[1] = offset128Lower }
    
    func (s *sum32) Sum32() uint32  { return uint32(*s) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/hash/hash.go

    	// are a multiple of the block size.
    	BlockSize() int
    }
    
    // Hash32 is the common interface implemented by all 32-bit hash functions.
    type Hash32 interface {
    	Hash
    	Sum32() uint32
    }
    
    // Hash64 is the common interface implemented by all 64-bit hash functions.
    type Hash64 interface {
    	Hash
    	Sum64() uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/hash/crc32/crc32.go

    	// initialization in this case.
    	d.crc = update(d.crc, d.tab, p, false)
    	return len(p), nil
    }
    
    func (d *digest) Sum32() uint32 { return d.crc }
    
    func (d *digest) Sum(in []byte) []byte {
    	s := d.Sum32()
    	return append(in, byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
    }
    
    // Checksum returns the CRC-32 checksum of data
    // using the polynomial represented by the [Table].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/dra/state/checkpoint.go

    	object = strings.Replace(object, "ClaimInfoStateListWithoutResourceHandles", "ClaimInfoStateList", 1)
    	hash := fnv.New32a()
    	fmt.Fprintf(hash, "%v", object)
    	if checkSum != checksum.Checksum(hash.Sum32()) {
    		return errors.ErrCorruptCheckpoint
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/hash/adler32/adler32.go

    		s1 %= mod
    		s2 %= mod
    		p = q
    	}
    	return digest(s2<<16 | s1)
    }
    
    func (d *digest) Write(p []byte) (nn int, err error) {
    	*d = update(*d, p)
    	return len(p), nil
    }
    
    func (d *digest) Sum32() uint32 { return uint32(*d) }
    
    func (d *digest) Sum(in []byte) []byte {
    	s := uint32(*d)
    	return append(in, byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
    }
    
    // Checksum returns the Adler-32 checksum of data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/compress/zlib/reader.go

    			err = io.ErrUnexpectedEOF
    		}
    		z.err = err
    		return n, z.err
    	}
    	// ZLIB (RFC 1950) is big-endian, unlike GZIP (RFC 1952).
    	checksum := binary.BigEndian.Uint32(z.scratch[:4])
    	if checksum != z.digest.Sum32() {
    		z.err = ErrChecksum
    		return n, z.err
    	}
    	return n, io.EOF
    }
    
    // Calling Close does not close the wrapped [io.Reader] originally passed to [NewReader].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top