Skip to content

Commit 038f9a5

Browse files
committed
added changes
1 parent 4fac806 commit 038f9a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

skl/arena.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package skl
77

88
import (
9+
"fmt"
910
"sync/atomic"
1011
"unsafe"
1112

@@ -95,12 +96,19 @@ func (s *Arena) getNode(offset uint32) *node {
9596
if offset == 0 {
9697
return nil
9798
}
99+
<<<<<<< HEAD
98100

99101
return (*node)(unsafe.Pointer(&s.buf[offset]))
102+
=======
103+
ret := (*node)(unsafe.Pointer(&s.buf[offset]))
104+
ret.keyOffset = offset
105+
return ret
106+
>>>>>>> 3351c72 (added changes)
100107
}
101108

102109
// getKey returns byte slice at offset.
103110
func (s *Arena) getKey(offset uint32, size uint16) []byte {
111+
fmt.Println("GET KEY", offset, size)
104112
return s.buf[offset : offset+uint32(size)]
105113
}
106114

0 commit comments

Comments
 (0)