Skip to content

smallnest/ringbuffer

Repository files navigation

ringbuffer

License GoDoc travis Go Report Card coveralls

A circular buffer (ring buffer) in Go, implemented io.ReaderWriter interface

wikipedia

rb := New(1024) // write rb.Write([]byte("abcd")) fmt.Println(rb.Length()) fmt.Println(rb.Free()) // read buf := make([]byte, 4) rb.Read(buf) fmt.Println(string(buf))

About

a thread-safe circular buffer (ring buffer) in Go, implemented io.ReaderWriter interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages