In the above example, page_list is both incomplete and unreliable. it will always only include 4 entries, the null page, the next 2 pages, and the last page (from my light analysis). Using the total (which is the total number of pages) and an increment of 1 we can build the pages by increment, but force the inclusion of the last page (which oddly violates the notion of zero based here).
This is to account for the strange LOC paging.
Paging data:
In the above example,
page_list
is both incomplete and unreliable. it will always only include 4 entries, the null page, the next 2 pages, and the last page (from my light analysis). Using thetotal
(which is the total number of pages) and an increment of 1 we can build the pages by increment, but force the inclusion of the last page (which oddly violates the notion of zero based here).