/** A fixed-size off-heap array of longs. Two implementations: Unsafe (before) and java.lang.foreign (after). */ public interface OffHeapLongs extends AutoCloseable { int length(); long get(int i); void set(int i, long v); boolean cas(int i, long expect, long update); long getAndAdd(int i, long delta); void clear(); void copyFrom(OffHeapLongs other); @Override void close(); }