Package io.activej.serializer
Interface BinarySerializer<T>
- All Known Implementing Classes:
RecordSerializer
public interface BinarySerializer<T>
Represents a serializer which encodes and decodes <T> values to byte arrays
-
Method Summary
Modifier and TypeMethodDescriptiondefault Tdecode(byte[] array, int pos) decode(BinaryInput in) default intvoidencode(BinaryOutput out, T item)
-
Method Details
-
encode
-
decode
- Throws:
CorruptedDataException
-
encode
-
decode
- Throws:
CorruptedDataException
-