MCPcopy
hub / github.com/kopia/kopia / allocChunk

Method allocChunk

internal/gather/gather_write_buffer.go:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150func (b *WriteBuffer) allocChunk() []byte {
151 if b.alloc == nil {
152 b.alloc = defaultAllocator
153 }
154
155 return b.alloc.allocChunk()
156}
157
158// Dup creates a clone of the WriteBuffer.
159func (b *WriteBuffer) Dup() *WriteBuffer {

Callers 2

MakeContiguousMethod · 0.95
AppendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected