Read/Write ChronicleMap's boostrapping header with Wire

This commit is contained in:
leventov
2015-11-25 20:37:19 +03:00
parent d32f7e9e62
commit fe77012381
57 changed files with 816 additions and 197 deletions
@@ -20,9 +20,9 @@ import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.BytesMarshallable;
import net.openhft.chronicle.hash.serialization.BytesReader;
import net.openhft.chronicle.hash.serialization.BytesWriter;
import net.openhft.chronicle.hash.serialization.impl.EnumMarshallable;
import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.map.ChronicleMapBuilder;
import net.openhft.chronicle.map.Issue43Test;
import org.jetbrains.annotations.NotNull;
import org.junit.Test;
@@ -36,7 +36,7 @@ public class ComplexSerializationTest {
List<B> list_;
}
enum AMarshaller implements BytesReader<A>, BytesWriter<A> {
enum AMarshaller implements BytesReader<A>, BytesWriter<A>, EnumMarshallable<AMarshaller> {
INSTANCE;
@Override
@@ -79,6 +79,11 @@ public class ComplexSerializationTest {
}
return using;
}
@Override
public AMarshaller readResolve() {
return INSTANCE;
}
}
static class B implements BytesMarshallable {