MCPcopy
hub / github.com/wavetermdev/waveterm / HeadPos

Method HeadPos

pkg/jobmanager/cirbuf.go:146–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (cb *CirBuf) HeadPos() int64 {
147 cb.lock.Lock()
148 defer cb.lock.Unlock()
149 return cb.totalSize - int64(cb.count)
150}
151
152func (cb *CirBuf) Size() int {
153 cb.lock.Lock()

Callers 3

ClientConnectedMethod · 0.80
RecvAckMethod · 0.80
prepareNextPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected