pyringbuf:用 C 编写的循环缓冲区 python 扩展

时间:2021-06-08 00:18:06
【文件属性】:
文件名称:pyringbuf:用 C 编写的循环缓冲区 python 扩展
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-08 00:18:06
C 皮林缓冲液 将字符的循环/环形缓冲区实现为 C 扩展的 python 扩展。 它无声地覆盖。 可用性 目前,pyringbuf 可在或通过pip install pyringbuf 。 因为这是一个 C 扩展,所以有一个编译步骤,所以你的系统需要能够为 python 编译扩展模块。 用法 >>> from ringbuf import RingBuffer >>> R = RingBuffer(5) #choose your buffer size >>> R.push("a") #push a single character into the buffer >>> R.pop() #pop a single character 'a' >>> R.write("bcdef") #fill buffer with many cha
【文件预览】:
pyringbuf-master
----README.rst(1KB)
----test()
--------__init__.py(0B)
--------tests.py(2KB)
----LICENSE(1KB)
----src()
--------ringbuf.c(6KB)
--------__init__.py(0B)
----setup.py(827B)
----.gitignore(37B)

网友评论