MCPcopy
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
31func (b *Bytes) invalidate() {
32 b.sliceBuf[0] = invalidSliceBuf
33 b.Slices = nil
34}
35
36func (b *Bytes) assertValid() {
37 if len(b.sliceBuf[0]) == len(invalidSliceBuf) && bytes.Equal(b.sliceBuf[0], invalidSliceBuf) {

Callers 2

CloseMethod · 0.80
ResetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected