An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.5% on proxy.golang.org
Top 2.5% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/tdewolff/buffer

Package buffer contains buffer and wrapper types for byte slices. It is useful for writing lexers or other high-performance byte slice handling. The `Reader` and `Writer` types implement the `io.Reader` and `io.Writer` respectively and provide a thinner and faster interface than `bytes.Buffer`. The `Shifter` type is useful for building lexers because it keeps track of the start and end position of a byte selection, and shifts the bytes whenever a valid token is found. The `Lexer` is however an improved version of `Shifter`, allowing zero-copy for the parser by using a (kind of) ring buffer underneath.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/tdewolff/buffer
License: MIT
Latest release: over 8 years ago
First release: over 10 years ago
Namespace: github.com/tdewolff
Dependent packages: 5
Dependent repositories: 4
Last synced: about 1 month ago