aboutsummaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-24 12:51:56 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-24 12:51:56 -0700
commit20b26eac781372336ebfaddadc559c5115295c82 (patch)
treed1920070b216e58716890a5c3412a50b64d73b99 /node.go
parentUpdate README.md (diff)
downloaddedo-20b26eac781372336ebfaddadc559c5115295c82.tar.gz
dedo-20b26eac781372336ebfaddadc559c5115295c82.tar.xz
TODO
Diffstat (limited to 'node.go')
-rw-r--r--node.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/node.go b/node.go
index 7a64459..6ca2d72 100644
--- a/node.go
+++ b/node.go
@@ -28,3 +28,13 @@ type branchNode struct {
func (n *leafNode) key() []byte {
return (*[MaxKeySize]byte)(unsafe.Pointer(&n.data))[:n.keySize]
}
+
+func leafNodeSize(key []byte, data []byte) int {
+ // TODO: Return even(sizeof(node) + len(key) + len(data))
+ return 0
+}
+
+func branchNodeSize(key []byte) int {
+ // TODO: Return even(sizeof(node) + len(key))
+ return 0
+}