Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for PutBytes (0.27 sec)

  1. android/guava/src/com/google/common/hash/HashingOutputStream.java

      @Override
      public void write(int b) throws IOException {
        hasher.putByte((byte) b);
        out.write(b);
      }
    
      @Override
      public void write(byte[] bytes, int off, int len) throws IOException {
        hasher.putBytes(bytes, off, len);
        out.write(bytes, off, len);
      }
    
      /**
       * Returns the {@link HashCode} based on the data written to this stream. The result is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java

         * PUTs the source byte array to target URI. The target MUST BE relative from the
         * {@link RemoteRepository#getUrl()} root.
         *
         * @throws RuntimeException If PUT fails for any reason.
         */
        void putBytes(@Nonnull byte[] source, @Nonnull URI relativeTarget);
    
        /**
         * PUTs the source string to target URI. The target MUST BE relative from the
         * {@link RemoteRepository#getUrl()} root.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
                  hashFunctionEnum
                      .getHashFunction()
                      .newHasher()
                      .putBytes(strings[i & SAMPLE_MASK].getBytes(StandardCharsets.UTF_8))
                      .hash());
        }
        return res;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java

            public GuavaProcessor(Hasher hasher) {
                this.hasher = hasher;
            }
    
            @Override
            public void process(byte[] input, Blackhole blackhole) {
                hasher.putBytes(input);
                blackhole.consume(hasher.hash());
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

            .putChar((char) 0x0100)
            .putChar((char) 0x0000)
            .putChar((char) 0x0000);
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher.putBytes(new byte[] {0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00});
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher.putLong(0x0000000001000101L);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 15:56:47 UTC 2017
    - 6.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrcHasher);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 23 18:30:33 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

            def name = file.name - '.class'
            def hasher = Hashing.md5().newHasher()
            dir.listFiles().findAll { it.name.startsWith(name) && it.name.endsWith('.class') }.sort().each {
                hasher.putBytes(it.bytes)
            }
            hasher.hash()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

                    return Arrays.toString((byte[]) array);
                }
    
                @Override
                public void appendTo(Hasher hasher, Object array) {
                    hasher.putBytes((byte[]) array);
                }
    
                @Override
                public void encode(Encoder encoder, Object array) throws IOException {
                    encoder.writeBinary((byte[]) array);
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

            get() = secretKey != null
    
        override val encryptionKeyHashCode: HashCode by lazy {
            secretKey?.let {
                Hashing.sha512().newHasher().apply {
                    putBytes(it.encoded)
                    putString(encryptionAlgorithm.transformation)
                }.hash()
            } ?: Hashing.newHasher().hash()
        }
    
        private
        fun shouldEncryptStreams(stateType: StateType) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

            @Override
            public byte[] toByteArray() {
                return bytes.clone();
            }
    
            @Override
            void appendToHasher(PrimitiveHasher hasher) {
                hasher.putBytes(bytes);
            }
    
            @Override
            public int hashCode() {
                return (bytes[0] & 0xFF)
                    | ((bytes[1] & 0xFF) << 8)
                    | ((bytes[2] & 0xFF) << 16)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 19:25:07 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top