MCPcopy Create free account
hub / github.com/djherbis/buffer / NewUnboundedBuffer

Function NewUnboundedBuffer

buffer.go:46–48  ·  view source on GitHub ↗

NewUnboundedBuffer returns a Buffer which buffers "mem" bytes to memory and then creates file's of size "file" to buffer above "mem" bytes.

(mem, file int64)

Source from the content-addressed store, hash-verified

44// NewUnboundedBuffer returns a Buffer which buffers "mem" bytes to memory
45// and then creates file's of size "file" to buffer above "mem" bytes.
46func NewUnboundedBuffer(mem, file int64) Buffer {
47 return NewMulti(New(mem), NewPartition(NewFilePool(file, os.TempDir())))
48}

Callers 1

TestGobFunction · 0.85

Calls 4

NewMultiFunction · 0.85
NewFunction · 0.85
NewPartitionFunction · 0.85
NewFilePoolFunction · 0.85

Tested by 1

TestGobFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…