Class CompressedChunkReader.Mmap

    • Method Detail

      • readChunk

        public void readChunk​(long position,
                              java.nio.ByteBuffer uncompressed)
        Description copied from interface: ChunkReader
        Read the chunk at the given position, attempting to fill the capacity of the given buffer. The filled buffer must be positioned at 0, with limit set at the size of the available data. The source may have requirements for the positioning and/or size of the buffer (e.g. chunk-aligned and chunk-sized). These must be satisfied by the caller.