Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 411 for serializers (0.18 sec)

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

     */
    
    package org.gradle.internal.serialize;
    
    public class Serializers {
        public static <T> StatefulSerializer<T> stateful(final Serializer<T> serializer) {
            return new StatefulSerializerAdapter<T>(serializer);
        }
    
        private static class StatefulSerializerAdapter<T> implements StatefulSerializer<T> {
            private final Serializer<T> serializer;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/process/internal/worker/request/WorkerAction.java

                }
                DefaultServiceRegistry serviceRegistry = new DefaultServiceRegistry("worker-action-services", parentServices);
                // Make the argument serializers available so work implementations can register their own serializers
                serviceRegistry.add(RequestArgumentSerializers.class, argumentSerializers);
                serviceRegistry.add(InstantiatorFactory.class, instantiatorFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 08:22:48 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/SerializerRegistry.java

     * limitations under the License.
     */
    
    package org.gradle.internal.serialize;
    
    public interface SerializerRegistry {
        /**
         * Use the given serializer for objects of the given type.
         * <p>
         * The provided serializer must be thread-safe and reusable.
         */
        <T> void register(Class<T> implementationType, Serializer<T> serializer);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractSerializer.java

     * limitations under the License.
     */
    
    package org.gradle.internal.serialize;
    
    import com.google.common.base.Objects;
    
    /**
     * This abstract class provide a sensible default implementation for {@code Serializer} equality. This equality
     * implementation is required to enable cache instance reuse within the same Gradle runtime. Serializers are used
     * as cache parameter which need to be compared to determine compatible cache.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/SerializersTest.groovy

            result1 == "one"
            result2 == "two"
            1 * serializer.read(decoder) >> "one"
            1 * serializer.read(decoder) >> "two"
            0 * serializer._
    
            when:
            writer.write("one")
            writer.write("two")
    
            then:
            1 * serializer.write(encoder, "one")
            1 * serializer.write(encoder, "two")
            0 * serializer._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/runtime/tracebuf.go

    	// to calculate this value when deserializing and reserializing the
    	// trace. Varints can have additional padding of zero bits that is
    	// quite difficult to preserve, and if we include the header we
    	// force serializers to do more work. Nothing else actually needs
    	// padding.
    	buf.varintAt(buf.lenPos, uint64(buf.pos-(buf.lenPos+traceBytesPerNumber)))
    	trace.full[gen%2].push(buf)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerRegistryTest.groovy

            serialize(123L, serializer) == 123L
            serialize(123, serializer) == 123
            serialize(123.4, serializer) == 123.4
        }
    
        def "custom serialization takes precedence over Java serialization"() {
            given:
            def customSerializer = Stub(Serializer) {
                read(_) >> { Decoder decoder ->
                    return decoder.readSmallLong() + 1
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Serializer.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.internal.serialize;
    
    import java.io.EOFException;
    
    public interface Serializer<T> {
        /**
         * Reads the next object from the given stream. The implementation must not perform any buffering, so that it reads only those bytes from the input stream that are
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentResultSerializerTest.groovy

        }
    
        private byte[] serialize(ResolvedGraphComponent component) {
            def outstr = new ByteArrayOutputStream()
            def encoder = new KryoBackedEncoder(outstr)
            serializer.write(encoder, component)
            encoder.flush()
            return outstr.toByteArray()
        }
    
        private ResolvedComponentResult deserialize(byte[] serialized) {
            def builder = new ResolutionResultGraphBuilder()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/cmd/internal/pgo/serialize.go

    // Serialization of a Profile allows go tool preprofile to construct the edge
    // map only once (rather than once per compile process). The compiler processes
    // then parse the pre-processed data directly from the serialized format.
    //
    // The format of the serialized output is as follows.
    //
    //      GO PREPROFILE V1
    //      caller_name
    //      callee_name
    //      "call site offset" "call edge weight"
    //      ...
    //      caller_name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top