MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / splitIntIntStr

Function splitIntIntStr

utils.go:51–56  ·  view source on GitHub ↗
(str, separator string)

Source from the content-addressed store, hash-verified

49}
50
51func splitIntIntStr(str, separator string) (int, int) {
52 strList := strings.Split(str, separator)
53 firstItem, _ := strconv2.StrToInt(strList[0])
54 secondItem, _ := strconv2.StrToInt(strList[1])
55 return firstItem, secondItem
56}
57
58func decodeListKey(buf []byte) ([]byte, uint64) {
59 seq := binary.LittleEndian.Uint64(buf[:8])

Callers 2

buildSortedSetIdxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected