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

Method Snap

mpt/tree.go:46–46  ·  view source on GitHub ↗

Snap sets the tree's version number and returns the current tree snapshot. Snap is a mutating operation and must not be called concurrently with any other Tree method calls (including other calls to Snap). As a special case, if version is negative, Snap does not set the version.

(version int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

mainFunction · 0.65
TestPredictRandomFunction · 0.65
snapMethod · 0.65
getMethod · 0.65
benchmarkSetFunction · 0.65
benchmarkProofFunction · 0.65
TestPredictFunction · 0.65
reopenMethod · 0.65
testDiskRecoveryFunction · 0.65
TestDiskReopenFunction · 0.65

Implementers 2

diskTreempt/disk.go
memTreempt/mem.go

Calls

no outgoing calls

Tested by 9

TestPredictRandomFunction · 0.52
snapMethod · 0.52
getMethod · 0.52
benchmarkSetFunction · 0.52
benchmarkProofFunction · 0.52
TestPredictFunction · 0.52
reopenMethod · 0.52
testDiskRecoveryFunction · 0.52
TestDiskReopenFunction · 0.52