Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var F, E, W, I, D, T logg.LevelPrinter = logg.GetLogPrinterSet(subsystem)
Functions ¶
This section is empty.
Types ¶
type BufferFloat64 ¶
func NewBufferFloat64 ¶
func NewBufferFloat64(size int) *BufferFloat64
NewBufferFloat64 creates a new ring buffer of float64 values
func (*BufferFloat64) Add ¶
func (b *BufferFloat64) Add(value float64)
Add a new value to the cursor position of the ring buffer
func (*BufferFloat64) ForEach ¶
func (b *BufferFloat64) ForEach(fn func(v float64) error) (e error)
ForEach is an iterator that can be used to process every element in the buffer
func (*BufferFloat64) Get ¶
func (b *BufferFloat64) Get(index int) (out *float64)
Get returns the value at the given index or nil if nothing
func (*BufferFloat64) Len ¶
func (b *BufferFloat64) Len() (length int)
Len returns the length of the buffer, which grows until it fills, after which this will always return the size of the buffer
type BufferUint64 ¶
func NewBufferUint64 ¶
func NewBufferUint64(size int) *BufferUint64
func (*BufferUint64) Add ¶
func (b *BufferUint64) Add(value uint64)
func (*BufferUint64) Get ¶
func (b *BufferUint64) Get(index int) (out *uint64)
Get returns the value at the given index or nil if nothing
Click to show internal directories.
Click to hide internal directories.