Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 539 for Decoder (0.13 sec)

  1. platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/WorkerJvmMemoryInfoSerializer.java

            @Override
            public JvmMemoryStatus read(Decoder decoder) throws EOFException, Exception {
                long committedMemory = decoder.readLong();
                long maxMemory = decoder.readLong();
                return new JvmMemoryStatusSnapshot(maxMemory, committedMemory);
            }
    
            @Override
            public void write(Encoder encoder, JvmMemoryStatus jvmMemoryStatus) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/streams/ValueStore.java

         * The current thread performs the decoding.
         */
        T read(BlockAddress blockAddress);
    
        interface Writer<T> {
            void write(Encoder encoder, T value) throws Exception;
        }
    
        interface Reader<T> {
            T read(Decoder decoder) throws Exception;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/TypeSafeSerializer.java

        public ObjectReader<Object> newReader(Decoder decoder) {
            final ObjectReader<T> reader = serializer.newReader(decoder);
            return new ObjectReader<Object>() {
                @Override
                public Object read() throws Exception {
                    return reader.read();
                }
            };
        }
    
        @Override
        public ObjectWriter<Object> newWriter(Encoder encoder) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileCollectionFingerprintSerializer.java

                String absolutePath = stringInterner.intern(decoder.readString());
                HashCode rootHash = hashCodeSerializer.read(decoder);
                builder.put(absolutePath, rootHash);
            }
            return builder.build();
        }
    
        @Override
        public void write(Encoder encoder, FileCollectionFingerprint value) throws Exception {
            fingerprintMapSerializer.write(encoder, value.getFingerprints());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/IntermediateModelController.kt

        override fun write(encoder: Encoder, value: IntermediateModel) {
            val (context, codecs) = cacheIO.writerContextFor(encoder)
            context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec())
            context.runWriteOperation {
                write(value)
            }
        }
    
        override fun read(decoder: Decoder): IntermediateModel {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/deps/IntSetSerializer.java

        private IntSetSerializer() {
        }
    
        @Override
        public IntSet read(Decoder decoder) throws EOFException, Exception {
            int size = decoder.readInt();
            if (size == 0) {
                return IntSets.EMPTY_SET;
            }
            IntSet result = new IntOpenHashSet(size);
            for (int i = 0; i < size; i++) {
                result.add(decoder.readInt());
            }
            return result;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 15:22:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentResultSerializer.java

        }
    
        public void readInto(Decoder decoder, ResolvedComponentVisitor builder) throws Exception {
            long resultId = decoder.readSmallLong();
            ComponentSelectionReason reason = reasonSerializer.read(decoder);
            String repo = decoder.readNullableString();
            builder.startVisitComponent(resultId, reason, repo);
            componentDetailsSerializer.readComponentDetails(decoder, builder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/IntQuestionPromptEventSerializer.java

            encoder.writeSmallInt(value.getDefaultValue());
        }
    
        @Override
        public IntQuestionPromptEvent read(Decoder decoder) throws Exception {
            return new IntQuestionPromptEvent(decoder.readLong(), decoder.readString(), decoder.readSmallInt(), decoder.readSmallInt());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/MultiChoiceAddressSerializer.java

    public class MultiChoiceAddressSerializer implements Serializer<MultiChoiceAddress> {
        @Override
        public MultiChoiceAddress read(Decoder decoder) throws IOException {
            UUID canonicalAddress = new UUID(decoder.readLong(), decoder.readLong());
            int port = decoder.readInt();
            int addressCount = decoder.readSmallInt();
            List<InetAddress> addresses = new ArrayList<InetAddress>(addressCount);
            for (int i = 0; i < addressCount; i++) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonInfo.java

            @Override
            public DaemonInfo read(Decoder decoder) throws Exception {
                Address address = addresses.get(decoder.readInt());
                byte[] token = decoder.readBinary();
                State state = State.values()[decoder.readByte()];
                long lastBusy = decoder.readLong();
                DaemonContext context = DefaultDaemonContext.SERIALIZER.read(decoder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top