aboutsummaryrefslogtreecommitdiff
path: root/bnode.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-01 09:42:11 -0800
committerBen Johnson <benbjohnson@yahoo.com>2014-02-01 09:42:11 -0800
commitb2a78a23644bf7cddb81059bd19176ebbe44710e (patch)
treed6aa197560053444d76dce1bd198a584c051c7b9 /bnode.go
parentMerge pull request #4 from benbjohnson/api (diff)
parentAdd RWTransaction.Put(). (diff)
downloaddedo-b2a78a23644bf7cddb81059bd19176ebbe44710e.tar.gz
dedo-b2a78a23644bf7cddb81059bd19176ebbe44710e.tar.xz
Merge pull request #5 from benbjohnson/put
Add RWTransaction.Put().
Diffstat (limited to 'bnode.go')
-rw-r--r--bnode.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/bnode.go b/bnode.go
deleted file mode 100644
index 3ad4f58..0000000
--- a/bnode.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package bolt
-
-import (
- "unsafe"
-)
-
-const bnodeSize = int(unsafe.Sizeof(lnode{}))
-
-// bnode represents a node on a branch page.
-type bnode struct {
- pos uint32
- ksize uint32
- pgid pgid
-}
-
-// key returns a byte slice of the node key.
-func (n *bnode) key() []byte {
- buf := (*[maxAllocSize]byte)(unsafe.Pointer(n))
- return buf[n.pos : n.pos+n.ksize]
-}