boolean (final long offsetInFile, final int valueLength) { final int offsetInPage = (int)(offsetInFile % pageSize); final int remainsOnPage = pageSize - offsetInPage; return valueLength <= remainsOnPage; }