All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xerial.larray.buffer.Memory Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package xerial.larray.buffer;

import java.lang.ref.ReferenceQueue;

/**
 * Allocated memory information
 * @author Taro L. Saito
 */
public interface Memory {

    /**
     * Allocated memory address
     * @return
     */
    long headerAddress();

    /**
     * data-part address
     * @return data address
     */
    long address();

    /**
     * Allocated memory size
     * @return
     */
    long size();

    /**
     * data-part size
     * @return
     */
    long dataSize();

    void release();

    MemoryReference toRef(ReferenceQueue queue);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy