queue

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue 供ByteBuffer使用的队列

func New

func New(size ...int) (q *Queue)

New 构造新队列

func (*Queue) Dequeue

func (q *Queue) Dequeue() (b *bytebuffer.ByteBuffer)

Dequeue 出队

func (*Queue) Enqueue

func (q *Queue) Enqueue(b *bytebuffer.ByteBuffer) (err error)

Enqueue 入队

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL