package
1.0.1
Repository: https://github.com/trpc-group/tnet.git
Documentation: pkg.go.dev

# Functions

Free resets buffer and puts it back to buffer pool.
New allocates a buffer from buffer pool.
SetCleanUp sets whether to enable clean up feature for all buffers.

# Variables

ErrBufferFull denotes that buffer is full.
ErrInvalidParam denotes that param is invalid.
ErrNodeFull denotes that not enough space is left in node for storing data.
ErrNoEnoughData denotes that data in buffer is not enough than expected.
MaxBufferSize max buffer size to fill.

# Structs

Buffer implements buffer chains to store data, it's safe to access data concurrently.

# Interfaces

Reader is used by Buffer to fill data from data source such as socket.