public class SerializedBytes<T> extends OpaqueBytes
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back.
Modifier and Type | Class and Description |
---|---|
static class |
SerializedBytes.Companion |
Modifier and Type | Field and Description |
---|---|
static SerializedBytes.Companion |
Companion |
Constructor and Description |
---|
SerializedBytes(byte[] bytes)
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize
to get the original object back.
|
Modifier and Type | Method and Description |
---|---|
static <T> SerializedBytes<T> |
from(T obj,
SerializationFactory serializationFactory,
SerializationContext context)
Serializes the given object and returns a
class SerializedBytes wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users. |
static <T> SerializedBytes<T> |
from(T obj,
SerializationFactory serializationFactory)
Serializes the given object and returns a
class SerializedBytes wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users. |
static <T> SerializedBytes<T> |
from(T obj)
Serializes the given object and returns a
class SerializedBytes wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users. |
SecureHash |
getHash() |
getBytes, of
public static SerializedBytes.Companion Companion
public SerializedBytes(byte[] bytes)
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back.
public SecureHash getHash()
public static <T> SerializedBytes<T> from(T obj, SerializationFactory serializationFactory, SerializationContext context)
Serializes the given object and returns a class SerializedBytes
wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users.
public static <T> SerializedBytes<T> from(T obj, SerializationFactory serializationFactory)
Serializes the given object and returns a class SerializedBytes
wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users.
public static <T> SerializedBytes<T> from(T obj)
Serializes the given object and returns a class SerializedBytes
wrapper for it. An alias for SerializationAPIKt.serialize
intended to make the calling smoother for Java users.