MCPcopy 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
127func 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

PushMethod · 0.92

Calls

no outgoing calls

Tested by 1