ladybird/Base
Jelle Raaijmakers 6601ff9d65 LibSQL: Redesign heap storage to support arbitrary amounts of data
Previously, `Heap` would store serialized data in blocks of 1024 bytes
regardless of the actual length. Data longer than 1024 bytes was
silently truncated causing database corruption.

This changes the heap storage to prefix every block with two new fields:
the total data size in bytes, and the next block to retrieve if the data
is longer than what can be stored inside a single block. By chaining
blocks together, we can store arbitrary amounts of data without needing
to change anything of the logic in the rest of LibSQL.

As part of these changes, the "free list" is also removed from the heap
awaiting an actual implementation: it was never used.

Note that this bumps the database version from 3 to 4, and as such
invalidates (deletes) any database opened with LibSQL that is not
version 4.
2023-04-23 18:08:17 -04:00
..
etc Shell: Load a different rc file when in POSIX mode 2023-03-22 09:46:16 +01:00
home/anon BrowserSettings: Add a tab to control the Browser's autoplay settings 2023-04-18 16:30:02 +02:00
res LibSQL: Redesign heap storage to support arbitrary amounts of data 2023-04-23 18:08:17 -04:00
root Base: Remove UserspaceEmulator from the list of manual pages to verify 2022-12-28 11:53:41 +01:00
usr Documentation: Update readlink.md to use LibFileSystem api 2023-04-09 20:58:54 -06:00
www Base: Improve default WebServer pages 2022-02-23 21:28:17 +00:00
.gitignore Meta: Don't generate emoji.txt into the source tree 2022-09-05 09:50:31 -04:00