Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nutsdb/nutsdb
/ DecodeListKey
Function
DecodeListKey
internal/utils/utils.go:127–132 ·
view source on GitHub ↗
(buf []byte)
Source
from the content-addressed store, hash-verified
125
}
126
127
func
DecodeListKey(buf []byte) ([]byte, uint64) {
128
seq := binary.LittleEndian.Uint64(buf[:8])
129
key := make([]byte, len(buf[8:]))
130
copy(key[:], buf[8:])
131
return
key, seq
132
}
Callers
2
TestEncodeListKeyAndDecodeListKey
Function · 0.92
Push
Method · 0.92
Calls
no outgoing calls
Tested by
1
TestEncodeListKeyAndDecodeListKey
Function · 0.74