- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 411 for serializers (0.18 sec)
-
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) -
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) -
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) -
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) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/SerializersTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 1.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)