File: float32_queue.go

package info (click to toggle)
golang-github-cheekybits-genny 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 336 kB
  • sloc: makefile: 17; sh: 3
file content (22 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny

package queue

// Float32Queue is a queue of Float32s.
type Float32Queue struct {
	items []float32
}

func NewFloat32Queue() *Float32Queue {
	return &Float32Queue{items: make([]float32, 0)}
}
func (q *Float32Queue) Push(item float32) {
	q.items = append(q.items, item)
}
func (q *Float32Queue) Pop() float32 {
	item := q.items[0]
	q.items = q.items[1:]
	return item
}