MCPcopy Create free account
hub / github.com/Monibuca/engine / recycle

Method recycle

util/ring-writer.go:72–78  ·  view source on GitHub ↗
(r *Ring[F])

Source from the content-addressed store, hash-verified

70}
71
72func (rb *RingWriter[T, F]) recycle(r *Ring[F]) {
73 if rb.pool == nil {
74 rb.pool = r
75 } else {
76 rb.pool.Link(r)
77 }
78}
79
80func (rb *RingWriter[T, F]) Reduce(size int) {
81 p := rb.Unlink(size)

Callers 1

ReduceMethod · 0.95

Calls 1

LinkMethod · 0.80

Tested by

no test coverage detected