Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for contentHash (0.17 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/DirectorySnapshot.java

        private final ChildMap<FileSystemLocationSnapshot> children;
        private final HashCode contentHash;
    
        public DirectorySnapshot(String absolutePath, String name, AccessType accessType, HashCode contentHash, List<FileSystemLocationSnapshot> children) {
            this(absolutePath, name, accessType, contentHash, childMapFromSorted(children.stream()
                .map(it -> new ChildMap.Entry<>(it.getName(), it))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/CacheManifest.java

            private final String relativePath;
            private final HashCode contentHash;
            private final long length;
    
            public ManifestEntry(FileType type, String relativePath, HashCode contentHash, long length) {
                this.type = type;
                this.relativePath = relativePath;
                this.contentHash = contentHash;
                this.length = length;
            }
    
            public FileType getType() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/RegularFileSnapshot.java

        private final HashCode contentHash;
        private final FileMetadata metadata;
    
        public RegularFileSnapshot(String absolutePath, String name, HashCode contentHash, FileMetadata metadata) {
            super(absolutePath, name, metadata.getAccessType());
            this.contentHash = contentHash;
            this.metadata = metadata;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. internal/hash/reader.go

    				}
    			}
    		}
    		if r.contentHasher != nil {
    			if r.contentHash.Type.Trailing() {
    				var err error
    				r.contentHash.Encoded = r.trailer.Get(r.contentHash.Type.Key())
    				r.contentHash.Raw, err = base64.StdEncoding.DecodeString(r.contentHash.Encoded)
    				if err != nil || len(r.contentHash.Raw) == 0 {
    					return 0, ChecksumMismatch{Got: r.contentHash.Encoded}
    				}
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java

            final File file;
            final String includePath;
            final HashCode contentHash;
    
            SystemIncludeFile(File file, String includePath, HashCode contentHash) {
                this.file = file;
                this.includePath = includePath;
                this.contentHash = contentHash;
            }
    
            @Override
            public String getPath() {
                return includePath;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  6. platforms/software/resources/src/main/java/org/gradle/internal/resource/StringTextResource.java

        }
    
        @Override
        public HashCode getContentHash() throws ResourceException {
            if (contentHash == null) {
                PrimitiveHasher hasher = Hashing.newPrimitiveHasher();
                hasher.putHash(SIGNATURE);
                hasher.putString(getText());
                contentHash = hasher.hash();
            }
            return contentHash;
        }
    
        @Override
        public File getFile() {
            return null;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. platforms/software/resources/src/main/java/org/gradle/internal/resource/CachingTextResource.java

        private static final HashCode SIGNATURE = Hashing.signature(CachingTextResource.class);
        private final TextResource resource;
        private String content;
        private HashCode contentHash;
    
        public CachingTextResource(TextResource resource) {
            this.resource = resource;
        }
    
        @Override
        public String getDisplayName() {
            return resource.getDisplayName();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FingerprintMapSerializer.java

            HashCode contentHash = readContentHash(fileType, decoder);
    
            byte fingerprintKind = decoder.readByte();
            switch (fingerprintKind) {
                case DEFAULT_NORMALIZATION:
                    String normalizedPath = decoder.readString();
                    return new DefaultFileSystemLocationFingerprint(stringInterner.intern(normalizedPath), fileType, contentHash);
                case IGNORED_PATH_NORMALIZATION:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/IgnoredPathFileSystemLocationFingerprint.java

            switch (type) {
                case Directory:
                    return DIRECTORY;
                case Missing:
                    return MISSING_FILE;
                case RegularFile:
                    return new IgnoredPathFileSystemLocationFingerprint(FileType.RegularFile, contentHash);
                default:
                    throw new IllegalStateException();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/DefaultFileSystemLocationFingerprint.java

        private final HashCode normalizedContentHash;
        private final String normalizedPath;
    
        public DefaultFileSystemLocationFingerprint(String normalizedPath, FileType type, HashCode contentHash) {
            this.normalizedContentHash = hashForType(type, contentHash);
            this.normalizedPath = normalizedPath;
        }
    
        private static HashCode hashForType(FileType fileType, HashCode hash) {
            switch (fileType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top