- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for userTypesCodec (0.16 sec)
-
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ActionNodeCodec.kt
class ActionNodeCodec( private val userTypesCodec: Codec<Any?>, ) : Codec<ActionNode> { override suspend fun WriteContext.encode(value: ActionNode) { withCodec(userTypesCodec) { write(value.action) } } override suspend fun ReadContext.decode(): ActionNode { val action = withCodec(userTypesCodec) { readNonNull<WorkNodeAction>() } return ActionNode(action)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/DelegatingCodec.kt
class DelegatingCodec<T>( private val userTypesCodec: Codec<Any?>, ) : Codec<T> { override suspend fun WriteContext.encode(value: T) { // Delegate to the other codec withCodec(userTypesCodec) { write(value) } } override suspend fun ReadContext.decode(): T { // Delegate to the other codec return withCodec(userTypesCodec) { readNonNull() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/IntermediateModelController.kt
context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec()) context.runWriteOperation { write(value) } } override fun read(decoder: Decoder): IntermediateModel { val (context, codecs) = cacheIO.readerContextFor(decoder) context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec()) return context.runReadOperation { readNonNull()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/AbstractUserTypeCodecTest.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/BuildTreeModelSideEffectStore.kt
context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec()) context.runWriteOperation { write(value) } } private fun read(decoder: Decoder): BuildTreeModelSideEffect { val (context, codecs) = cacheIO.readerContextFor(decoder) context.push(IsolateOwners.OwnerHost(host), codecs.userTypesCodec()) return context.runReadOperation {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/metadata/ProjectMetadataController.kt
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) write(value.moduleVersionId) writeConfigurations(value.candidatesForGraphVariantSelection) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 8.9K bytes - Viewed (0)