Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for encodeArg (0.21 sec)

  1. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/package-info.java

     *      The WriteContext keeps track (among other things) of the low level binary stream (actually, a Gradle serialization {@link org.gradle.internal.serialize.Encoder Encoder}) and the codec to be used.
     *  </p>
     *  <p>
     *      Object serialization is a graph-walking process, and as such, it has a recursive nature.
     *  </p>
     *  <p></p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/serialize/ClassPathEncodingExtensions.kt

    import org.gradle.internal.serialize.Decoder
    import org.gradle.internal.serialize.Encoder
    import org.gradle.internal.serialize.graph.readFile
    import org.gradle.internal.serialize.graph.writeCollection
    import org.gradle.internal.serialize.graph.writeFile
    
    
    internal
    fun Encoder.writeClassPath(classPath: ClassPath) {
        // Ensure that the proper type is going to be restored,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/IntermediateModelController.kt

        override fun projectPathForKey(key: ModelKey) = key.identityPath
    
        override fun write(encoder: Encoder, value: IntermediateModel) {
            val (context, codecs) = cacheIO.writerContextFor(encoder)
            context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec())
            context.runWriteOperation {
                write(value)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/BuildTreeModelSideEffectStore.kt

            return sideEffects.map {
                valuesStore.read(it)
            }
        }
    
        private
        fun write(encoder: Encoder, value: BuildTreeModelSideEffect) {
            val (context, codecs) = cacheIO.writerContextFor(encoder)
            context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec())
            context.runWriteOperation {
                write(value)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/metadata/ProjectMetadataController.kt

        override fun projectPathForKey(key: Path) = key
    
        override fun write(encoder: Encoder, value: LocalComponentGraphResolveState) {
            val (context, codecs) = cacheIO.writerContextFor(encoder)
            context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec())
            context.runWriteOperation {
                write(value.id)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/ProjectStateStore.kt

        private val calculatedValueContainerFactory: CalculatedValueContainerFactory
    ) : Closeable {
    
        private
        val valuesStore by lazy {
            val writer = ValueStore.Writer<V> { encoder, value ->
                write(encoder, value)
            }
            val reader = ValueStore.Reader { decoder ->
                read(decoder)
            }
            store.createValueStore(stateType, writer, reader)
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/AbstractUserTypeCodecTest.kt

            withIsolate(IsolateOwners.OwnerGradle(mock()), codec) {
                block()
            }
    
        private
        fun writeContextFor(encoder: FlushableEncoder, codec: Codec<Any?>, problemHandler: ProblemsListener) =
            DefaultWriteContext(
                codec = codec,
                encoder = encoder,
                classEncoder = DefaultClassEncoder(mock()),
                beanStateWriterLookup = DefaultBeanStateWriterLookup(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go

    		DefaultMapType: reflect.TypeOf(map[string]interface{}(nil)),
    
    		// A CBOR text string whose content is not a valid UTF-8 sequence is well-formed but
    		// invalid according to the CBOR spec. Reject invalid inputs. Encoders are
    		// responsible for ensuring that all text strings they produce contain valid UTF-8
    		// sequences and may use the byte string major type to encode strings that have not
    		// been validated.
    		UTF8: cbor.UTF8RejectInvalid,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:03:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializer.kt

        private
        fun writeContextFor(
            outputStream: OutputStream,
            classEncoder: ClassEncoder,
        ) = DefaultWriteContext(
            codec = isolatedActionCodecs.isolatedActionCodecs(),
            encoder = KryoBackedEncoder(outputStream),
            beanStateWriterLookup = beanStateWriterLookup,
            logger = logger,
            tracer = null,
            problemsListener = ThrowingProblemsListener,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top