MCPcopy Create free account
hub / github.com/egonelbre/exp / Len

Method Len

queue/blockqueue/queue.go:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21func New() *Queue { return &Queue{} }
22
23func (q *Queue) Len() int {
24 return int(q.blocks)*BlockSize - BlockSize + int(q.tailx) - int(q.headx)
25}
26
27func (q *Queue) Empty() bool { return q.head == nil }
28

Callers 4

DequeueMethod · 0.45
DequeueMethod · 0.45
DequeueMethod · 0.45
DequeueMethod · 0.45

Implementers 15

LCFifoqueues/list_chan.go
LCLifoqueues/list_chan.go
RmLifoqueues/ring_mutex.go
RmFifoqueues/ring_mutex.go
PcLifoqueues/link_chan.go
PcFifoqueues/link_chan.go
ScLifoqueues/slice_chan.go
ScFifoqueues/slice_chan.go
CFifoqueues/chan.go
LFifoqueues/list_mutex.go
LLifoqueues/list_mutex.go
ZFifoFreechanqueues/zfifo_freechan.go

Calls

no outgoing calls

Tested by

no test coverage detected