aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-11-05 16:16:09 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-11-05 16:16:09 -0800
commit12b3a405268ced4e55babb2dbbd7fe2d48c2c39e (patch)
tree79e22d1fbe7976c5f21b26305ca983cc011f33a8
parent54fd4040da07f06390274a4a6b561a55196d48a3 (diff)
downloadgeniza-12b3a405268ced4e55babb2dbbd7fe2d48c2c39e.tar.gz
geniza-12b3a405268ced4e55babb2dbbd7fe2d48c2c39e.zip
add reverse-engineered drive notes
-rw-r--r--notes/drive.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/notes/drive.md b/notes/drive.md
new file mode 100644
index 0000000..8148acf
--- /dev/null
+++ b/notes/drive.md
@@ -0,0 +1,20 @@
+
+First varint is a header. Lowest bit of header is "endsWithSeq".
+
+When expanding, if "endsWithSeq", is set, add the current index to *every*
+level of the array?
+
+When adding, the current index is always added at every stage of the path.
+
+In the index, include one entry for subdirectories; take the newest element of
+the subdirectory as that entry (which might itself be a deeper nested
+subdirectory entry)
+
+There seem to be extra empty arrays everywhere? not sure what's up with that,
+maybe I have an off-by-one.
+
+The current path counts as an entry (eg, "/README" decomposes to "/" and
+"README", two entries). I'm not sure why... so directories can have entries?
+
+Entry indexes are effectively 1-based (0 is the pubkey entry); don't correct
+for this.