@Override public void readPage(long id, /*P*/ byte[] page) throws IOException { try { mPageArray.readPage(id, page, 0, pageSize()); } catch (Throwable e) { throw closeOnFailure(e); } }
@Override public void readPage(long id, /*P*/ byte[] page) throws IOException { try { mPageArray.readPage(id, page, 0, pageSize()); } catch (Throwable e) { throw closeOnFailure(e); } }
@Override public void readPage(long id, /*P*/ byte[] page) throws IOException { try { mPageArray.readPage(id, page, 0, pageSize()); } catch (Throwable e) { throw closeOnFailure(e); } }
private void readPartial(long index, int start, byte[] buf, int offset, int length) throws IOException { /*P*/ byte[] page; int readLen; if (isDirectIO()) { readLen = pageSize(); page = p_alloc(readLen, true); } else { readLen = start + length; page = p_alloc(readLen, false); } try { mPageArray.readPage(index, page, 0, readLen); p_copyToArray(page, start, buf, offset, length); } finally { p_delete(page); } }
int dupCount = pageSize() / MINIMUM_PAGE_SIZE; for (int i=1; i<dupCount; i++) { p_copy(header, 0, header, i * MINIMUM_PAGE_SIZE, MINIMUM_PAGE_SIZE);
int dupCount = pageSize() / MINIMUM_PAGE_SIZE; for (int i=1; i<dupCount; i++) { p_copy(header, 0, header, i * MINIMUM_PAGE_SIZE, MINIMUM_PAGE_SIZE);
int dupCount = pageSize() / MINIMUM_PAGE_SIZE; for (int i=1; i<dupCount; i++) { p_copy(header, 0, header, i * MINIMUM_PAGE_SIZE, MINIMUM_PAGE_SIZE);