PagedArray.cpp
/**
 * Loads a page from disk into memory
 * @param where In which slot to load the page
 * @param which Which page to load
 * @return The loaded page array pointer
 */
Loads a page from disk into memory
@param where In which slot to load the page
@param which Which page to load
@return The loaded page array pointer
Loads a page from disk into memory @param where In which slot to load the page @param which Which page to load @return The loaded page array pointer
int *PagedArray::loadPage(int where, int which) {
    int *loadedPage = FileHandler::readNumbers(file, which * PAGESIZE, PAGESIZE);
    pageContainer[where] = loadedPage;
    loadedPages[where] = which;
    return loadedPage;
}
int * PagedArray :: loadPage ( int where , int which ) { int * loadedPage = FileHandler :: readNumbers ( file , which * PAGESIZE , PAGESIZE ) ; pageContainer [ where ] = loadedPage ; loadedPages [ where ] = which ; return loadedPage ; }
Loads a page from disk into memory
 @param where In which slot to load the page
 @param which Which page to load
 @return The loaded page array pointer
Loads a page from disk into memory @param where In which slot to load the page @param which Which page to load @return The loaded page array pointer
//printf ("Loaded page %d on slot %d\n", which, where);