uk.ac.starlink.fits

## Interface UnmappableBuffer

-     public interface UnmappableBuffer

  Aggregates a ByteBuffer representing a mapped region of a file and a way to attempt to reclaim its resources (off-heap memory).
  Since:
    23 Jul 2026

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.nio.ByteBuffer` | `getBuffer()` Returns the buffer.
    `boolean` | `unmapBuffer()` Attempts to reclaim resources used by the buffer.

- - ### Method Detail

    - #### getBuffer

          java.nio.ByteBuffer getBuffer()

      Returns the buffer.
      Returns:
        buffer

    - #### unmapBuffer

          boolean unmapBuffer()

      Attempts to reclaim resources used by the buffer. DO NOT attempt to use the buffer following a call to this method; depending on the implementation, very bad things could happen.
      Returns:
        true iff resources are actually reclaimed as a result of this call