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] On Sat, May 18, 2019 at 9:10 AM Richard Hipp <d...@sqlite.org> wrote: > > On 5/18/19, Gravis <sqlite-us...@adaptivetime.com> wrote: > > I've been working on making a simple DB file reader and according to > > the file format document (https://sqlite.org/fileformat.html), > > immediately after a "B-tree Page Header" is the "cell pointer array". > > Unfortunately, it never actually states how to use these 16-bit values > > to compute the addresses they are supposed to point to. If someone > > could clarify this for me (and preferably get the documentation > > updated) that would be great. > > Each entry in the cell pointer array is a 16-bit unsigned integer, > which is the offset to the start of the cell from the beginning of the > page. > -- > 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 _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users