xen0n / bufferqueue

Simple buffer queue in Go that only copies incoming data once

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bufferqueue

GitHub go.mod Go version GitHub tag (latest by date) GitHub branch checks state GoDoc

import (
    "github.com/xen0n/bufferqueue" // package bufferqueue
)

A simple single-producer single-consumer buffer queue that only copies its incoming data once, for every Read() from it. Zero-copy is not possible given the semantic of io.Reader.

Beware: This implementation might be extremely buggy, do not put into production yet without much testing.

License

About

Simple buffer queue in Go that only copies incoming data once

License:Other


Languages

Language:Go 100.0%