We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fac806 commit 038f9a5Copy full SHA for 038f9a5
skl/arena.go
@@ -6,6 +6,7 @@
6
package skl
7
8
import (
9
+ "fmt"
10
"sync/atomic"
11
"unsafe"
12
@@ -95,12 +96,19 @@ func (s *Arena) getNode(offset uint32) *node {
95
96
if offset == 0 {
97
return nil
98
}
99
+<<<<<<< HEAD
100
101
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)
107
108
109
// getKey returns byte slice at offset.
110
func (s *Arena) getKey(offset uint32, size uint16) []byte {
111
+ fmt.Println("GET KEY", offset, size)
112
return s.buf[offset : offset+uint32(size)]
113
114
0 commit comments