updated using git-extra
authoralex <[email protected]>
Sun, 5 Dec 2021 20:33:04 +0000 (12:33 -0800)
committeralex <[email protected]>
Sun, 5 Dec 2021 20:33:04 +0000 (12:33 -0800)
todo

diff --git a/todo b/todo
index 8daff2c30c7101b60a90e37f1c8e615f6087768d..580c7e9b96ff4e22ecc738355864393eb68e3b2b 100644 (file)
--- a/todo
+++ b/todo
@@ -52,15 +52,13 @@ Stage 0:
 *rework hashing/piece layers data organization
 *verify correctness of file_hash w/ bep0052.py script
 *rework tree
+*refactor torrent
+-convert file sizes to uint64_t - HERE
 -torrent_file()
        *torrent_file_info
        *rework torrent_file
        *rework tree
        *tree_bencode
-       -rework bencode
-               -snprintf return # of bytes needed to fill completely
-               -move to memcpy instead of snprintf (necessary because of binary data)
-               -rethink strategy for when out of available buffer space
        -torrent_bencode_piece_layers
                -need to sort (hash as key, file->piece_layers as value)
                        -consider adding piece layer hashmap to torrent struct
@@ -70,12 +68,9 @@ Stage 0:
                        -reference to position of piece in file
                        -void* for data
                                -filled jit, cached
--convert file sizes to uint64_t
--refactor torrent
-       -split into multiple files
-               -add, init, free, etc.
-               -gonna need remove eventually
 -torrent_magnet()
+-rework bencode
+       -rethink strategy for when out of available buffer space
 -test
        -bencode
                -check that snprintf doesn't have weird behavior w/ \n and \0