@LoadLevel(name="PROTOBUF", order=0) public class ProtobufSerializer extends Object implements Serializer
| Constructor and Description |
|---|
ProtobufSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] bytes)
Decode t from byte[].
|
<T> byte[] |
serialize(T t)
Encode object to byte[].
|
protected static final Charset UTF8
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.