feature/cleanup #2

Merged
manuel merged 4 commits from feature/cleanup into master 2023-04-04 02:11:10 +02:00
Showing only changes of commit 27b534313d - Show all commits

View file

@ -6,15 +6,12 @@ import lombok.NonNull;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.MAGIC_BYTE_1;
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.MAGIC_BYTE_2;
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.VERSION_BYTE;
public class LabyrinthOutputStream extends ByteArrayOutputStream { public class LabyrinthOutputStream extends ByteArrayOutputStream {
public void writeHeader() { public void writeHeader() {
this.writeByte(MAGIC_BYTE_1); this.writeByte(SerializerDeserializer.MAGIC_BYTE_1);
this.writeByte(MAGIC_BYTE_2); this.writeByte(SerializerDeserializer.MAGIC_BYTE_2);
this.writeByte(VERSION_BYTE); this.writeByte(SerializerDeserializer.VERSION_BYTE);
} }
public void writeByte(final byte value) { public void writeByte(final byte value) {