Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for hashCopy (0.14 sec)

  1. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/DefaultStreamHasherTest.groovy

        }
    
        def "can hash input while copying it"() {
            def input = new ByteArrayInputStream("hello".bytes)
            def output = new ByteArrayOutputStream()
            when:
            def hash = new DefaultStreamHasher().hashCopy(input, output)
            then:
            hash.toString() == "af67a92e9f73b51572e9b94e343d2840"
            output.toByteArray() == "hello".bytes
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/StreamHasher.java

        HashCode hash(InputStream inputStream);
    
        /**
         * Returns the hash of the given input stream while copying the data to the output stream.
         * The method will not close either stream.
         */
        HashCode hashCopy(InputStream inputStream, OutputStream outputStream) throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        // We know that we have only added non-null Characters.
        Table<String, Integer, Character> hashCopy =
            HashBasedTable.create((Table<String, Integer, ? extends Character>) table);
        Table<String, Integer, C> reordered = create("foo", 3, 'c', "foo", 1, 'a', "bar", 1, 'b');
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 16:54:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultStreamHasher.java

            } catch (IOException e) {
                throw new UncheckedIOException("Failed to create MD5 hash for file content.", e);
            }
        }
    
        @Override
        public HashCode hashCopy(InputStream inputStream, OutputStream outputStream) throws IOException {
            return doHash(inputStream, outputStream);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPacker.java

            try (CountingOutputStream output = new CountingOutputStream(new FileOutputStream(file))) {
                HashCode hash = streamHasher.hashCopy(input, output);
                chmodUnpackedFile(entry, file);
                String internedAbsolutePath = stringInterner.intern(file.getAbsolutePath());
                String internedFileName = stringInterner.intern(fileName);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top