MCPcopy Create free account
hub / github.com/rsc/tmp / mutate

Method mutate

mpt/disk.go:284–290  ·  view source on GitHub ↗

TODO: should mutate be done by editing dst in place and then calling t.mutated(dst)? mutate is like copy(dst, src) where dst is inside t.mem. It also records the mutation in the patch buffer, to be written to disk when the current patch block fills or Sync is called.

(dst, src []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

memOpenFunction · 0.95
setAddrAtMethod · 0.95
setVersionMethod · 0.45
setDirtyMethod · 0.45
setExactMethod · 0.45
setRootMethod · 0.45
setHashMethod · 0.45
initMethod · 0.45
setIHashMethod · 0.45
setDirtyMethod · 0.45

Calls 3

brokenMethod · 0.95
minFunction · 0.85
MutateMethod · 0.80

Tested by

no test coverage detected