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

Method Init

util/ring-writer.go:45–52  ·  view source on GitHub ↗
(n int, constructor func() F)

Source from the content-addressed store, hash-verified

43}
44
45func (rb *RingWriter[T, F]) Init(n int, constructor func() F) *RingWriter[T, F] {
46 rb.constructor = constructor
47 rb.Ring = rb.create(n)
48 rb.Size = n
49 rb.LastValue = rb.Value
50 rb.Value.StartWrite()
51 return rb
52}
53
54func (rb *RingWriter[T, F]) Glow(size int) (newItem *Ring[F]) {
55 if size < rb.poolSize {

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
StartWriteMethod · 0.65

Tested by

no test coverage detected