On 5/18/19, Gravis <sqlite-us...@adaptivetime.com> wrote:
> So would this pseudocode yield the correct address for cell number
> "x"? (assuming cell x exists)
>
>   ((page_number - 1) * page_size) + cell_pointer_array[x]

Yes.

You seem to be thinking in terms of overall file offsets.  We tend to
think in terms of offsets within a single page.  You should get the
same answer in either case, but just know that you are looking at this
from a different angle.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to