public interface Serializer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(byte[] bytes)
Deserialize the specified bytes.
|
<T> byte[] |
encode(T object)
Serialize the specified object.
|
static Serializer |
using(org.onlab.util.KryoNamespace kryo)
Creates a new Serializer instance from a KryoNamespace.
|
<T> byte[] encode(T object)
T - encoded typeobject - object to serialize.<T> T decode(byte[] bytes)
T - decoded typebytes - byte array to deserialize.static Serializer using(org.onlab.util.KryoNamespace kryo)
kryo - kryo namespaceCopyright © 2015. All rights reserved.