- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 94 for readBooleans (0.29 sec)
-
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) -
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) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/StyledTextOutputEventSerializer.java
long timestamp = decoder.readLong(); String category = decoder.readString(); LogLevel logLevel = logLevelSerializer.read(decoder); OperationIdentifier buildOperationId = decoder.readBoolean() ? new OperationIdentifier(decoder.readSmallLong()) : null; List<StyledTextOutputEvent.Span> spans = spanSerializer.read(decoder);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/Version1LockStateSerializer.java
dataOutput.writeBoolean(!state.dirty); } @Override public LockState read(DataInput dataInput) throws IOException { return new DirtyFlagLockState(!dataInput.readBoolean()); } private static class DirtyFlagLockState implements LockState { private final boolean dirty; private DirtyFlagLockState(boolean dirty) { this.dirty = dirty; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2.4K bytes - Viewed (0) -
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) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/DependencyResultSerializer.java
long selectorId = decoder.readSmallLong(); ComponentSelector requested = selectors.get(selectorId); boolean constraint = decoder.readBoolean(); long fromVariant = decoder.readSmallLong(); byte resultByte = decoder.readByte(); if (resultByte == SUCCESSFUL) { long selectedId = decoder.readSmallLong();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/CachedEnvironmentStateCodec.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/cached/AbstractCachedIndexTest.groovy
CachedItem read(Decoder decoder) throws EOFException, Exception { def filename = decoder.readString() def file = filename.empty ? null : new File(filename) def missing = decoder.readBoolean() return cachedItem(file, missing) } @Override void write(Encoder encoder, CachedItem value) throws Exception { encoder.writeString(value.cachedFile?.absolutePath ?: "")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/IvyArtifactNameSerializer.java
write(encoder, value); } } @Nullable public IvyArtifactName readNullable(Decoder decoder) throws IOException { boolean hasArtifact = decoder.readBoolean(); if (hasArtifact) { return read(decoder); } return null; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.5K bytes - Viewed (0) -
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)