package
Version:
v0.20.0
Opens a new window with list of versions in this module.
Published: Aug 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Buffer is a simple implementation of a ring/circular buffer.
NewBuffer returns a ring buffer of a given size.
Read reads from the buffer, returning io.EOF if it has read up until where
it has written.
Write writes to the buffer, circularly overwriting data if p exceeds the
size of the buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.