MCPcopy Create free account
hub / github.com/couchbase/moss / encodeOpKeyLenValLen

Function encodeOpKeyLenValLen

segment.go:537–541  ·  view source on GitHub ↗

------------------------------------------------------

(operation uint64, keyLen, valLen int)

Source from the content-addressed store, hash-verified

535// ------------------------------------------------------
536
537func encodeOpKeyLenValLen(operation uint64, keyLen, valLen int) uint64 {
538 return (maskOperation & operation) |
539 (maskKeyLength & (uint64(keyLen) << 32)) |
540 (maskValLength & (uint64(valLen)))
541}
542
543func decodeOpKeyLenValLen(opklvl uint64) (uint64, int, int) {
544 operation := maskOperation & opklvl

Callers 2

mutateExMethod · 0.85
MutateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…