package
0.8.9
Repository: https://github.com/influx6/npkg.git
Documentation: pkg.go.dev

# Functions

NewBitsBoot returns a new instance of a BitsBoot which returns allocated and managed Buffer.
NewBitsPool returns a new instance of a BitsPool which returns allocated and managed Buffer.
NewBytePool creates a new BytePool bounded to the given maxSize, with new byte arrays sized based on width.
NewBytesPool returns a new instance of a BytesPool with size distance used for new npools and creates as many as the initialAmount of RangePools internally to service those size requests.

# Structs

BitsBoot implements a custom pool for issue Buffers, but uses a internal []Buffer slice instead of the sync.Pool.
BitsPool implements a custom pool for issue Buffers, using the sync.Pool.
Buffer holds a allocated memory which will be used by receiver and discard once done with byte slice to allow re-use.
BytePool implements a leaky pool of []byte in the form of a bounded channel.
BytesPool exists to contain multiple RangePool that lies within giving distance range.