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

Method mutate

segment.go:244–254  ·  view source on GitHub ↗
(operation uint64, key, val []byte)

Source from the content-addressed store, hash-verified

242}
243
244func (a *segment) mutate(operation uint64, key, val []byte) error {
245 keyStart := len(a.buf)
246 a.buf = append(a.buf, key...)
247 keyLength := len(a.buf) - keyStart
248
249 valStart := len(a.buf)
250 a.buf = append(a.buf, val...)
251 valLength := len(a.buf) - valStart
252
253 return a.mutateEx(operation, keyStart, keyLength, valLength)
254}
255
256func (a *segment) mutateEx(operation uint64,
257 keyStart, keyLength, valLength int) error {

Callers 4

SetMethod · 0.95
DelMethod · 0.95
MergeMethod · 0.95
MutateMethod · 0.95

Calls 1

mutateExMethod · 0.95

Tested by

no test coverage detected