package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

Get retrieves a buffer of the appropriate length from the global buffer pool (or allocates a new one).
NewBuffer constructs a new buffer initialized to `buf`.
NewBufferString is identical to NewBuffer *except* that it allows one to initialize the buffer from a string (without having to allocate an intermediate bytes slice).
Put returns a buffer to the global buffer pool.

# Constants

MaxLength is the maximum length of an element that can be added to the Pool.
MinRead is the minimum slice size passed to a Read call by Buffer.ReadFrom.
No description provided by the author

# Variables

GlobalPool is a static Pool for reusing byteslices of various sizes.

# Structs

Buffer is a buffer like bytes.Buffer that: 1.
BufferPool is a pool to handle cases of reusing elements of varying sizes.
Writer is a buffered writer that returns its internal buffer in a pool when not in use.