Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for crc32c (0.05 sec)

  1. guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      // CRC32
    
      @Benchmark
      byte crc32HashFunction(int reps) {
        return runHashFunction(reps, Hashing.crc32());
      }
    
      @Benchmark
      byte crc32Checksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          CRC32 checksum = new CRC32();
          checksum.update(testBytes, 0, testBytes.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

       */
      private static void assertCrc(int expectedCrc, byte[] data) {
        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

       */
      private static void assertCrc(int expectedCrc, byte[] data) {
        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashingTest.java

              .put(Hashing.crc32(), "", "00000000")
              .put(Hashing.crc32(), TQBFJOTLD, "39a34f41")
              .put(Hashing.crc32(), TQBFJOTLDP, "e9259051")
              .put(Hashing.sipHash24(), "", "310e0edd47db6f72")
              .put(Hashing.sipHash24(), TQBFJOTLD, "e46f1fdc05612752")
              .put(Hashing.sipHash24(), TQBFJOTLDP, "9b602581fce4d4f8")
              .put(Hashing.crc32c(), "", "00000000")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      // CRC32
    
      @Benchmark
      byte crc32HashFunction(int reps) {
        return runHashFunction(reps, Hashing.crc32());
      }
    
      @Benchmark
      byte crc32Checksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          CRC32 checksum = new CRC32();
          checksum.update(testBytes, 0, testBytes.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Crc32cHashFunction.java

          }
          while (bb.remaining() >= 16) {
            crc0 = computeForWord(crc0);
            crc1 = computeForWord(crc1);
            crc2 = computeForWord(crc2);
            crc3 = computeForWord(crc3);
            crc0 ^= bb.getInt();
            crc1 ^= bb.getInt();
            crc2 ^= bb.getInt();
            crc3 ^= bb.getInt();
          }
        }
    
        @Override
        protected void processRemaining(ByteBuffer bb) {
          if (finished) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 21.3K bytes
    - Viewed (0)
  7. internal/http/lambda-headers.go

    	AmzFwdHeaderContentRange       = "x-amz-fwd-header-Content-Range"
    	AmzFwdHeaderContentType        = "x-amz-fwd-header-Content-Type"
    	AmzFwdHeaderChecksumCrc32      = "x-amz-fwd-header-x-amz-checksum-crc32"
    	AmzFwdHeaderChecksumCrc32c     = "x-amz-fwd-header-x-amz-checksum-crc32c"
    	AmzFwdHeaderChecksumSha1       = "x-amz-fwd-header-x-amz-checksum-sha1"
    	AmzFwdHeaderChecksumSha256     = "x-amz-fwd-header-x-amz-checksum-sha256"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hashing.java

        return ChecksumType.ADLER_32.hashFunction;
      }
    
      @Immutable
      enum ChecksumType implements ImmutableSupplier<Checksum> {
        CRC_32("Hashing.crc32()") {
          @Override
          public Checksum get() {
            return new CRC32();
          }
        },
        ADLER_32("Hashing.adler32()") {
          @Override
          public Checksum get() {
            return new Adler32();
          }
        };
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. internal/http/headers.go

    	// Server-Status
    	MinIOServerStatus = "x-minio-server-status"
    
    	// Content Checksums
    	AmzChecksumAlgo   = "x-amz-checksum-algorithm"
    	AmzChecksumCRC32  = "x-amz-checksum-crc32"
    	AmzChecksumCRC32C = "x-amz-checksum-crc32c"
    	AmzChecksumSHA1   = "x-amz-checksum-sha1"
    	AmzChecksumSHA256 = "x-amz-checksum-sha256"
    	AmzChecksumMode   = "x-amz-checksum-mode"
    
    	// Delete special flag to force delete a bucket or a prefix
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:31:56 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. internal/hash/checksum.go

    func (c ChecksumType) Hasher() hash.Hash {
    	switch {
    	case c.Is(ChecksumCRC32):
    		return crc32.NewIEEE()
    	case c.Is(ChecksumCRC32C):
    		return crc32.New(crc32.MakeTable(crc32.Castagnoli))
    	case c.Is(ChecksumSHA1):
    		return sha1.New()
    	case c.Is(ChecksumSHA256):
    		return sha256.New()
    	}
    	return nil
    }
    
    // Trailing return whether the checksum is trailing.
    func (c ChecksumType) Trailing() bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top