diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-29 19:12:49 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-29 19:12:49 -0500 |
commit | d38be1d25bcf0e2955d64e1a6e2ea6e5e260ddad (patch) | |
tree | b5a8772fa9373751868778b272f06fc635292c96 /bnode.go | |
parent | Add branch.put(). (diff) | |
download | dedo-d38be1d25bcf0e2955d64e1a6e2ea6e5e260ddad.tar.gz dedo-d38be1d25bcf0e2955d64e1a6e2ea6e5e260ddad.tar.xz |
Add branch.split()
Diffstat (limited to 'bnode.go')
-rw-r--r-- | bnode.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,5 +15,6 @@ type bnode struct { // key returns a byte slice of the node key. func (n *bnode) key() []byte { - return (*[MaxKeySize]byte)(unsafe.Pointer(&n))[n.pos : n.pos+n.ksize] + buf := (*[maxAllocSize]byte)(unsafe.Pointer(n)) + return buf[n.pos : n.pos+n.ksize] } |