aboutsummaryrefslogtreecommitdiff
path: root/internal/hash/page.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hash/page.go')
-rw-r--r--internal/hash/page.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/hash/page.go b/internal/hash/page.go
deleted file mode 100644
index 1044f95..0000000
--- a/internal/hash/page.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package hash
-
-/*
- * routines dealing with a data page
- *
- * page format:
- * ┌───┬────────┬────────┬────────┐
- * p │ n │ keyoff │ datoff │ keyoff │
- * ├───┴────┬───┴───┬────┴──┬─────┤
- * │ datoff │ free │ ptr │ ──> │
- * ├────────┴───────┴───────┴─────┤
- * │ F R E E A R E A │
- * ├──────────────┬───────────────┤
- * │ <──── ─ ─ ─ │ data │
- * ├────────┬─────┴────┬──────────┤
- * │ key │ data │ key │
- * └────────┴──────────┴──────────┘
- *
- * Pointer to the free space is always: p[p[0] + 2]
- * Amount of free space on the page is: p[p[0] + 1]
- */