MCPcopy
hub / github.com/kopia/kopia / Bytes

Method Bytes

internal/gather/gather_write_buffer.go:114–119  ·  view source on GitHub ↗

Bytes returns inner gather.Bytes.

()

Source from the content-addressed store, hash-verified

112
113// Bytes returns inner gather.Bytes.
114func (b *WriteBuffer) Bytes() Bytes {
115 b.mu.Lock()
116 defer b.mu.Unlock()
117
118 return b.inner
119}
120
121// Append appends the specified slice of bytes to the buffer.
122func (b *WriteBuffer) Append(data []byte) {

Callers 15

maybeDecryptBlobMethod · 0.95
syncCopyBlobMethod · 0.95
runMethod · 0.95
runBenchmarkMethod · 0.95
verifyContentCacheFunction · 0.95
getPartialMethod · 0.95
PutMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 14

verifyContentCacheFunction · 0.76
testStorageProtectionFunction · 0.76
TestBlobCryptoFunction · 0.76
genContentBytesFunction · 0.76
mustPutDummySessionBlobFunction · 0.76
TestFormattersFunction · 0.76
writeFakeIndexFunction · 0.76