CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/serialization/Codec.java

12 lines
340 B
Java
Raw Normal View History

2021-02-02 19:40:37 +01:00
package it.cavallium.dbengine.database.serialization;
import java.io.IOException;
import org.jetbrains.annotations.NotNull;
public interface Codec<A> {
2021-08-31 09:14:46 +02:00
@NotNull A deserialize(@NotNull BufferDataInput serialized) throws IOException;
2021-02-02 19:40:37 +01:00
2021-08-31 09:14:46 +02:00
void serialize(@NotNull BufferDataOutput outputStream, @NotNull A deserialized) throws IOException;
2021-02-02 19:40:37 +01:00
}