MCPcopy
hub / github.com/segmentio/kafka-go / ptr

Method ptr

stats.go:51–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49type gauge int64
50
51func (g *gauge) ptr() *int64 {
52 return (*int64)(g)
53}
54
55func (g *gauge) observe(v int64) {
56 atomic.StoreInt64(g.ptr(), v)

Callers 2

observeMethod · 0.95
snapshotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected