cqueue:使用链表在 golang 中实现循环缓冲区

时间:2021-06-19 17:35:36
【文件属性】:
文件名称:cqueue:使用链表在 golang 中实现循环缓冲区
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-19 17:35:36
Go 队列 使用链表在 golang 中实现循环缓冲区 #####安装 go get github.com/pravj/cqueue 一个循环缓冲区结构 // CQueue represents a circular buffer data structure type CQueue struct { // size limit of the buffer size int // occupied size of the buffer Length int // list containing all the buffer elements Queue * list. List // element at the front-side of the buffer Head * list. Element // element at the back-
【文件预览】:
cqueue-master
----example()
--------main.go(2KB)
----LICENSE(1KB)
----main.go(2KB)
----README.md(2KB)

网友评论