@LoadLevel(name="KRYO") public class KryoSerializer extends Object implements Serializer
| Constructor and Description |
|---|
KryoSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] bytes)
Decode t from byte[].
|
<T> byte[] |
serialize(T t)
Encode object to byte[].
|
public <T> byte[] serialize(T t)
Serializerserialize in interface SerializerT - the type parametert - the tpublic <T> T deserialize(byte[] bytes)
Serializerdeserialize in interface SerializerT - the type parameterbytes - the bytesCopyright © 2023 Seata. All rights reserved.