I am using Chronicle Bytes version 1.7.22. I would like to use Bytes for off-heap caching and persistence of large media (e.g. images, videos). Currently I am creating the Bytes as follows:
Bytes.elasticByteBuffer();
OR (for persistence)
MappedBytes.mappedBytes(file, 64);
I have used Bytes.outputStream() to write the media content and used Bytes.inputStream() to read the media content. However, I can only read the InputStream once. It does not seem to support reset. How can I read the media content multiple times and concurrently without allocation of extra memory?