I have been using "javolution" that facilitates me to create Java objects which can be serialized to nio.ByteBuffer that can be further mapped to C structs.
How can I achieve the same using Chronicle Wire?
I have been using "javolution" that facilitates me to create Java objects which can be serialized to nio.ByteBuffer that can be further mapped to C structs.
How can I achieve the same using Chronicle Wire?
You can write to a ByteBuffer which is wrapped by a Bytes.
I have added some test cases here https://github.com/OpenHFT/Chronicle-Wire/blob/master/src/test/java/net/openhft/chronicle/wire/marshallable/ByteBufferMarshallingTest.java
However if you intent is to only use RawWire, you might be better off
extend
ingAbstractBytesMarshallable
and not using Wire for serialization.