Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for writeSmallInt (1.4 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentResultSerializer.java

                List<ResolvedGraphVariant> selectedVariants = value.getSelectedVariants();
                encoder.writeSmallInt(selectedVariants.size());
                for (ResolvedGraphVariant variant : selectedVariants) {
                    selectedVariantSerializer.writeVariantResult(variant, encoder);
                }
            } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/streams/BlockAddressSerializer.java

            return new BlockAddress(decoder.readSmallInt(), decoder.readSmallLong(), decoder.readSmallLong());
        }
    
        @Override
        public void write(Encoder encoder, BlockAddress value) throws Exception {
            encoder.writeSmallInt(value.fileId);
            encoder.writeSmallLong(value.pos);
            encoder.writeSmallLong(value.length);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/BaseSerializerFactory.java

                return type.getEnumConstants()[decoder.readSmallInt()];
            }
    
            @Override
            public void write(Encoder encoder, T value) throws Exception {
                encoder.writeSmallInt((byte) value.ordinal());
            }
    
            @Override
            public boolean equals(Object obj) {
                if (!super.equals(obj)) {
                    return false;
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/SuppliedComponentMetadataSerializer.java

            }
        }
    
        private void writeStatusScheme(Encoder encoder, ComponentMetadata md) throws IOException {
            List<String> statusScheme = md.getStatusScheme();
            encoder.writeSmallInt(statusScheme.size());
            for (String s : statusScheme) {
                encoder.writeString(s);
            }
        }
    
        private List<String> readStatusScheme(Decoder decoder) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/DurationCodec.kt

            // Do not use the ISO-8601 format for serialization
            // to work around https://bugs.openjdk.java.net/browse/JDK-8054978
            // on Java 8
            writeLong(value.seconds)
            writeSmallInt(value.nano)
        }
    
        override suspend fun ReadContext.decode(): Duration =
            Duration.ofSeconds(readLong(), readSmallInt().toLong())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/processing/AnnotationProcessorDeclarationSerializer.java

        }
    
        @Override
        public void write(Encoder encoder, AnnotationProcessorDeclaration value) throws Exception {
            encoder.writeString(value.getClassName());
            encoder.writeSmallInt(value.getType().ordinal());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/SelectOptionPromptEventSerializer.java

            encoder.writeLong(value.getTimestamp());
            encoder.writeString(value.getQuestion());
            optionsSerializer.write(encoder, value.getOptions());
            encoder.writeSmallInt(value.getDefaultOption());
        }
    
        @Override
        public SelectOptionPromptEvent read(Decoder decoder) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/deps/ClassSetAnalysisData.java

                encoder.writeSmallInt(value.classHashes.size());
                for (Map.Entry<String, HashCode> entry : value.classHashes.entrySet()) {
                    hierarchicalNameSerializer.write(encoder, entry.getKey());
                    hashCodeSerializer.write(encoder, entry.getValue());
                }
    
                encoder.writeSmallInt(value.dependents.size());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 15:22:57 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/EnumCodec.kt

            writeEnumValueOf(value::class.java.superclass, value)
        }
    }
    
    
    private
    fun WriteContext.writeEnumValueOf(enumClass: Class<out Any>, enumValue: Any) {
        writeClass(enumClass)
        writeSmallInt((enumValue as Enum<*>).ordinal)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileCollectionFingerprintSerializer.java

            }
        }
    
        private void writeRootHashes(Encoder encoder, ImmutableMultimap<String, HashCode> rootHashes) throws IOException {
            encoder.writeSmallInt(rootHashes.size());
            for (Map.Entry<String, HashCode> entry : rootHashes.entries()) {
                encoder.writeString(entry.getKey());
                hashCodeSerializer.write(encoder, entry.getValue());
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top