T
- type of serialized objectpublic interface ByteArraySerializer<T> extends Serializer
StreamSerializer
.
Note that read and write methods should be compatibleModifier and Type | Method and Description |
---|---|
T |
read(byte[] buffer)
Converts given byte array to object
|
byte[] |
write(T object)
Converts given object to byte array
|
destroy, getTypeId
byte[] write(T object) throws IOException
object
- that will be serializedIOException
T read(byte[] buffer) throws IOException
buffer
- that object will be read fromIOException
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.