aboutsummaryrefslogtreecommitdiff
path: root/bnode.go
diff options
context:
space:
mode:
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]
-}