Disk class
Programs from roupi
stores really really long strings(BETA)
the objective of this api is to efficiently store gigantic strings in the computer files within the game limitations, when it is complete i may use this lib to create a robust database.

api in action:

Capture d’écran du 2022-09-03 18-43-16.png 43.3 KB

first this stores a string of 160000 length to the disk in the "Disk.write(char_100000)" line
then it updates the start of the 160000 first file to "abcdefghi"
then it updates the string after 4th index to "111"
so the first file will start with "abcd111hi1111111111111111111111111..."
at this point there is only 1 file in disk with 160000 chars which is the limit for the file
then we update the string in the 159995th index to "abcdefghi"
what it will do is set the final of the fist file to "...1111111abcde" and create a new file containing "fghi"
image.png 149 KB
Files
Builds
disk-class_0.1.1
Download build

Post's comments

post does not have comments.

You need to log in to write a comment.