MCPcopy Create free account
hub / github.com/segmentio/encoding / acquireStack

Function acquireStack

json/token.go:412–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410}
411
412func acquireStack() *stack {
413 s, _ := stackPool.Get().(*stack)
414 if s == nil {
415 s = &stack{state: make([]state, 0, 4)}
416 } else {
417 s.state = s.state[:0]
418 }
419 return s
420}
421
422func releaseStack(s *stack) {
423 stackPool.Put(s)

Callers 1

pushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…