Skip navigation links

Package net.openhft.chronicle.hash.serialization

Contains interfaces for serializing objects between Java heap and Bytes or BytesStore, used by Chronicle Map to store objects off-heap, and read them back from off-heap memory to on-heap objects.

See: Description

Package net.openhft.chronicle.hash.serialization Description

Contains interfaces for serializing objects between Java heap and Bytes or BytesStore, used by Chronicle Map to store objects off-heap, and read them back from off-heap memory to on-heap objects.

Read Custom serializers section in the Chronicle Map tutorial for more information.

Reading methods in the interfaces in this package could use StreamingDataInput as the "input" parameter type and StreamingDataOutput as the "output" parameter type, but always use just Bytes and BytesStore, though this is "unsafe" because somebody could make a mistake and write into bytes supposed to be read-only or read some garbage bytes. This is done because of the poor support of StreamingDataInput/StreamingDataOutput in Chronicle Bytes and other projects. Byteable, BytesMarshallable, Chronicle Wire and others support only BytesStore or Bytes, but not read/write separated interfaces.

Skip navigation links

Copyright © 2016. All rights reserved.