Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for writeNullableString (0.29 sec)

  1. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractEncoder.java

            if (value == null) {
                writeBoolean(false);
            } else {
                writeBoolean(true);
                writeSmallInt(value);
            }
        }
    
        @Override
        public void writeNullableString(@Nullable CharSequence value) throws IOException {
            if (value == null) {
                writeBoolean(false);
            } else {
                writeBoolean(true);
                writeString(value.toString());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java

            }
    
            @Override
            public void write(Encoder encoder, DefaultDaemonContext context) throws Exception {
                encoder.writeNullableString(context.uid);
                encoder.writeString(context.javaHome.getPath());
                encoder.writeSmallInt(context.javaVersion.asInt());
                encoder.writeString(context.daemonRegistryDir.getPath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java

            if (value == null) {
                throw new IllegalArgumentException("Cannot encode a null string.");
            }
            output.writeString(value);
        }
    
        @Override
        public void writeNullableString(@Nullable CharSequence value) {
            output.writeString(value);
        }
    
        @Override
        public void encodeChunked(EncodeAction<Encoder> writeAction) throws Exception {
            if (nested == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DefaultCopySpecCodec.kt

        private val fileSystemOperations: FileSystemOperations
    ) : Codec<DefaultCopySpec> {
    
        override suspend fun WriteContext.encode(value: DefaultCopySpec) {
            encodePreservingIdentityOf(value) {
                writeNullableString(value.destinationDir?.path)
                write(value.sourceRootsForThisSpec)
                write(value.patterns)
                writeEnum(value.duplicatesStrategyForThisSpec)
                writeBoolean(value.includeEmptyDirs)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Encoder.java

        /**
         * Writes a non-null string value.
         */
        void writeString(CharSequence value) throws IOException;
    
        /**
         * Writes a nullable string value.
         */
        void writeNullableString(@Nullable CharSequence value) throws IOException;
    
        interface EncodeAction<T> {
            void write(T target) throws Exception;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

                encoder.writeBoolean(value.status != null);
                if (value.status != null) {
                    encoder.writeByte((byte) value.status.ordinal());
                }
    
                encoder.writeNullableString(value.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)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunication.java

                OutputStream outputStream = new EncodedStream.EncodedOutput(byteArrayOutputStream);
                FlushableEncoder encoder = new OutputStreamBackedEncoder(outputStream);
                encoder.writeNullableString(pid == null ? null : pid.toString());
                encoder.writeString(uid);
                MultiChoiceAddress multiChoiceAddress = (MultiChoiceAddress) address;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/processing/AnnotationProcessingData.java

                typesSerializer.write(encoder, value.aggregatedTypes);
                typesSerializer.write(encoder, value.generatedTypesDependingOnAllOthers);
                encoder.writeNullableString(value.fullRebuildCause);
                generatedResourcesSerializer.write(encoder, value.generatedResourcesByOrigin);
                resourcesSerializer.write(encoder, value.generatedResourcesDependingOnAllOthers);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Feb 24 12:57:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

         */
        String readString() throws EOFException, IOException;
    
        /**
         * Reads a nullable string value. Can reads any value that was written using {@link Encoder#writeNullableString(CharSequence)}.
         *
         * @throws EOFException when the end of the byte stream is reached before the string can be fully read.
         */
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top