MCPcopy Create free account
hub / github.com/expr-lang/expr / New

Function New

internal/ring/ring.go:12–19  ·  view source on GitHub ↗
(chunkSize int)

Source from the content-addressed store, hash-verified

10}
11
12func New[T any](chunkSize int) *Ring[T] {
13 if chunkSize < 1 {
14 panic("chunkSize must be greater than zero")
15 }
16 return &Ring[T]{
17 chunkSize: chunkSize,
18 }
19}
20
21func (r *Ring[T]) Len() int {
22 return r.len

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected