Documentation
¶
Index ¶
- type Ring
- func (r *Ring) Back() (value mapf64)
- func (r *Ring) Cap() int
- func (r *Ring) CopyTo(dst []mapf64) (n int)
- func (r *Ring) ForcePushBack(value mapf64)
- func (r *Ring) Front() (value mapf64)
- func (r *Ring) Full() bool
- func (r *Ring) Len() int
- func (r *Ring) PopFront() (value mapf64)
- func (r *Ring) PushBack(value mapf64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring is a fixed-size circular buffer.
func (*Ring) CopyTo ¶
Copy makes copy of the ring buffer to dst slice. Returns count of copied items.
func (*Ring) ForcePushBack ¶
func (r *Ring) ForcePushBack(value mapf64)
ForcePushBack adds new item to the end of buffer and deletes first item if buffer is full.
func (*Ring) Front ¶
func (r *Ring) Front() (value mapf64)
Front returns the first item of the buffer.
Click to show internal directories.
Click to hide internal directories.