MCPcopy
hub / github.com/kopia/kopia / AppendSectionTo

Method AppendSectionTo

internal/gather/gather_write_buffer.go:90–95  ·  view source on GitHub ↗

AppendSectionTo appends the section of the buffer to the provided slice and returns it.

(w io.Writer, offset, size int)

Source from the content-addressed store, hash-verified

88
89// AppendSectionTo appends the section of the buffer to the provided slice and returns it.
90func (b *WriteBuffer) AppendSectionTo(w io.Writer, offset, size int) error {
91 b.mu.Lock()
92 defer b.mu.Unlock()
93
94 return b.inner.AppendSectionTo(w, offset, size)
95}
96
97// Length returns the combined length of all slices.
98func (b *WriteBuffer) Length() int {

Callers 3

TestGatherWriteBufferFunction · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 1

TestGatherWriteBufferFunction · 0.76