- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for javaSerialized (0.26 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractValueProcessor.java
} return outputStream.toByteArray(); } private static <T> T javaSerialization(Object value, ValueVisitor<T> visitor) { return visitor.javaSerialized(value, javaSerialized(value)); } private static byte[] javaSerialized(Object value) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); try (ObjectOutputStream oos = new ObjectOutputStream(outputStream)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 19:08:37 UTC 2024 - 10K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java
return new GradleSerializedValueSnapshot(classLoaderHasher.getClassLoaderHash(value.getClass().getClassLoader()), serializedValue); } @Override public ValueSnapshot javaSerialized(Object value, byte[] serializedValue) { return new JavaSerializedValueSnapshot(classLoaderHasher.getClassLoaderHash(value.getClass().getClassLoader()), serializedValue); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java
throw new UnsupportedOperationException("Isolating values of type '" + value.getClass().getSimpleName() + "' is not supported"); } @Override public Isolatable<?> javaSerialized(Object value, byte[] serializedValue) { return new IsolatedJavaSerializedValueSnapshot(classLoaderHashOf(value), serializedValue, value.getClass()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 22:53:34 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/SerializedPayloadSerializer.java
import java.util.List; public class SerializedPayloadSerializer implements Serializer<SerializedPayload> { private final Serializer<Object> javaSerializer = new DefaultSerializer<Object>(); @Override public void write(Encoder encoder, SerializedPayload value) throws Exception { javaSerializer.write(encoder, value.getHeader()); encoder.writeSmallInt(value.getSerializedModel().size());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/protocol/DaemonMessageSerializer.java
encoder.writeBoolean(result.wasCancelled()); javaSerializer.write(encoder, result.getException()); } } else { // Serialize anything else encoder.writeByte((byte) 5); javaSerializer.write(encoder, success.getValue()); } } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 19:54:56 UTC 2024 - 18.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt
verify(configurationCacheRoundtripOf(factory())) } private fun <T : Any> javaSerializationRoundtripOf(bean: T): T = javaDeserialize(javaSerialize(bean)).uncheckedCast() private fun <T : Any> javaSerialize(bean: T): ByteArray = ByteArrayOutputStream().let { bytes -> ObjectOutputStream(bytes).useToRun { writeObject(bean) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 16.1K bytes - Viewed (0)