Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for readBooleans (0.2 sec)

  1. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

                encoder.writeBoolean(true)
                encoder.writeBoolean(false)
            }
            decode(bytes) { Decoder decoder ->
                assert decoder.readBoolean()
                assert !decoder.readBoolean()
            }
        }
    
        def "decode fails when boolean cannot be fully read"() {
            given:
            def bytes = truncate { Encoder encoder ->
                encoder.writeBoolean(true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ConfigurableFileCollectionCodec.kt

                val contents = codec.run { decodeContents() }
                val fileCollection = fileCollectionFactory.configurableFiles()
                fileCollection.from(contents)
                if (readBoolean()) {
                    fileCollection.finalizeValue()
                }
                isolate.identities.putInstance(id, fileCollection)
                fileCollection
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/CalculatedValueContainerCodec.kt

                }
            }
        }
    
        override suspend fun ReadContext.decode(): CalculatedValueContainer<Any, ValueCalculator<Any>>? {
            return decodePreservingSharedIdentity {
                val available = readBoolean()
                if (available) {
                    val value = read()
                    // TODO - restore the correct display name when the container is attached to its owner (rather than writing the display name to the cache)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/CachedEnvironmentStateCodec.kt

                writeString(removal.key)
            }
        }
    
        override suspend fun ReadContext.decode(): ConfigurationCacheEnvironmentChangeTracker.CachedEnvironmentState {
            val cleared = readBoolean()
            val updates = readList {
                val clazz = readClass()
                val key = read() as Any
                val value = read()
                when (clazz) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/PatternSetCodec.kt

        writeCollection(value.includeSpecsView)
        writeCollection(value.excludeSpecsView)
    }
    
    
    private
    suspend fun ReadContext.readPatternSet(value: PatternSet) {
        value.isCaseSensitive = readBoolean()
        value.setIncludes(readStrings())
        value.setExcludes(readStrings())
        readCollection {
            value.include(readNonNull<Spec<FileTreeElement>>())
        }
        readCollection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/LocalFileDependencyBackedArtifactSetCodec.kt

                }
                write(mappings)
            }
        }
    
        override suspend fun ReadContext.decode(): LocalFileDependencyBackedArtifactSet {
            val requestedAttributes = readBoolean()
            val allowNoMatchingVariants = readBoolean()
            val componentId = read() as ComponentIdentifier?
            val files = readNonNull<FileCollectionInternal>()
            val filter = readNonNull<Spec<ComponentIdentifier>>()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/CrossBuildCachingKeyService.java

            @Override
            public CacheEntry<PGPPublicKeyRing> read(Decoder decoder) throws Exception {
                long timestamp = decoder.readLong();
                boolean present = decoder.readBoolean();
                if (present) {
                    byte[] encoded = decoder.readBinary();
                    PGPObjectFactory objectFactory = new PGPObjectFactory(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:44:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

                long timestamp = decoder.readLong();
                long pid = decoder.readLong();
                DaemonExpirationStatus status = decoder.readBoolean() ? DaemonExpirationStatus.values()[decoder.readByte()] : null;
                String reason = decoder.readNullableString();
                return new DaemonStopEvent(new Date(timestamp), pid, status, reason);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/DesugaredAttributeContainerSerializer.java

                byte type = decoder.readByte();
                if (type == BOOLEAN_ATTRIBUTE) {
                    attributes = attributesFactory.concat(attributes, Attribute.of(name, Boolean.class), decoder.readBoolean());
                } else if (type == INTEGER_ATTRIBUTE) {
                    attributes = attributesFactory.concat(attributes, Attribute.of(name, Integer.class), decoder.readInt());
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/transform/DefaultTransformCodec.kt

                val inputArtifactNormalizer = readEnum<InputNormalizer>()
                val inputArtifactDependenciesNormalizer = readEnum<InputNormalizer>()
                val isCacheable = readBoolean()
                val inputArtifactDirectorySensitivity = readEnum<DirectorySensitivity>()
                val inputArtifactDependenciesDirectorySensitivity = readEnum<DirectorySensitivity>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top