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
- in case of any exceptional caseT read(byte[] buffer) throws IOException
buffer
- that object will be read fromIOException
- in case of any exceptional caseCopyright © 2023 Hazelcast, Inc.. All rights reserved.