Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/kopia/kopia
/ invalidate
Method
invalidate
internal/gather/gather_bytes.go:31–34 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
}
30
31
func
(b *Bytes) invalidate() {
32
b.sliceBuf[0] = invalidSliceBuf
33
b.Slices = nil
34
}
35
36
func
(b *Bytes) assertValid() {
37
if
len(b.sliceBuf[0]) == len(invalidSliceBuf) && bytes.Equal(b.sliceBuf[0], invalidSliceBuf) {
Callers
2
Close
Method · 0.80
Reset
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected