Registry / utility / smallnest-ringbuffer

smallnest-ringbuffer

JSON →
library0.1.1gogounverified

A high-performance lock-free ring buffer implementation in Go.

go get github.com/smallnest/ringbuffer
INSTALL
IMPORT
SIG · SMALLNEST-RINGBUFF
S
smallnest-ringbuffer
utilitygov0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ringbuffer
github.com/smallnest/ringbuffer

Write and read from a ring buffer

package main import ( "fmt" "github.com/smallnest/ringbuffer" ) func main() { rb := ringbuffer.New(1024) rb.Write([]byte("hello")) buf := make([]byte, 5) rb.Read(buf) fmt.Println(string(buf)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
smallnest-ringbuffer — go get smallnest-ringbuffer · libregistry