memoryblock.java

来自「jnative java 调用动态库需要的包和dll」· Java 代码 · 共 54 行

JAVA
54
字号
package org.xvolks.jnative.pointers.memory;
import org.xvolks.jnative.exceptions.*;

/**
 * $Id: MemoryBlock.java,v 1.4 2006/06/09 20:44:04 mdenty Exp $
 *
 * <p>This interface represents a block of native memory</p>
 * This software is released under the LGPL.
 * @author Created by Marc DENTY - (c) 2006 JNative project
 */
public interface MemoryBlock {
	
	/**
	 * Method getPointer
	 *
	 * @return   the pointer that addresses the memory block
	 * @exception   NullPointerException if the pointer is null
	 *
	 */
	public Integer getPointer() throws NullPointerException;
	
	/**
	 * Method getSize
	 *
	 * @return   the size of this memory block
	 *
	 * @exception   NullPointerException if the pointer is null
	 *
	 */
	public int getSize() throws NullPointerException;
	
	/**
	 * Method reserveMemory allocate a block of native memory
	 *
	 * @param    size                in bytes of the block
	 *
	 * @return   the address of the reserved memory
	 *
	 * @exception   NativeException
	 *
	 */
	public int reserveMemory(int size) throws NativeException;
	
	/**
	 * Method dispose provides a way to free the memory
	 *
	 * @exception   NativeException
	 *
	 */
	public void dispose() throws NativeException;
	
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?