MCPcopy
hub / github.com/kopia/kopia / NewWriteBuffer

Function NewWriteBuffer

internal/gather/gather_write_buffer.go:172–174  ·  view source on GitHub ↗

NewWriteBuffer creates new write buffer.

()

Source from the content-addressed store, hash-verified

170
171// NewWriteBuffer creates new write buffer.
172func NewWriteBuffer() *WriteBuffer {
173 return &WriteBuffer{}
174}
175
176// NewWriteBufferMaxContiguous creates new write buffer that will allocate large chunks.
177func NewWriteBufferMaxContiguous() *WriteBuffer {

Callers 10

initNewBufferMethod · 0.92
testPutAndGetFunction · 0.92
BuildShardsMethod · 0.92
BuildShardsMethod · 0.92
WriteIndexBlobsMethod · 0.92
flushBufferLockedMethod · 0.92
TestGatherWriteBufferFunction · 0.85

Calls

no outgoing calls

Tested by 2

testPutAndGetFunction · 0.74
TestGatherWriteBufferFunction · 0.68