MCPcopy
hub / github.com/kopia/kopia / WriteBuffer

Struct WriteBuffer

internal/gather/gather_write_buffer.go:14–18  ·  view source on GitHub ↗

+checklocksignore WriteBuffer is a write buffer for content of unknown size that manages data in a series of byte slices of uniform size.

Source from the content-addressed store, hash-verified

12// WriteBuffer is a write buffer for content of unknown size that manages
13// data in a series of byte slices of uniform size.
14type WriteBuffer struct {
15 alloc *chunkAllocator
16 mu sync.Mutex
17 inner Bytes
18}
19
20// Close releases all memory allocated by this buffer.
21func (b *WriteBuffer) Close() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected