Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
HeapFile
This object, HeapFile, uses a disk file as if it were a RAM-based heap store. Your application uses calls to alloc( ) and Free( ) space in disk file. If your application stores the pointer returned by alloc( ), this space is persistent.
HeapFile
{
// public construtor
HeapFile( String pathname );
HeapFile( String pathname, String access );
HeapFile( String pathname, int free_size );
// public methods
public int alloc( int size ) throw new HeapFileAllocException;
public void close();
public void free( int ptr );
public int read( int ptr, byte[ ] b );
public int read( int ptr, byte[ ] b, int nbytes );
public int write( int ptr, byte[ ] b );
public String paramString();
}