Versions in this module Expand all Collapse all v0 v0.0.10 Jun 10, 2025 Changes in this version + const AutoExpand + const DefaultSize + const MaxBufferLength + const MaxRead + const MaxThreshold + const MinRead + const ResetOffMark + var ConnReadTimeout = 15 * time.Second + var ErrClosedPipeWrite = errors.New("write on closed buffer") + var ErrDuplicate = errors.New("PutIoPool duplicate") + var ErrEOF = errors.New("EOF") + var ErrInvalidWriteCount = errors.New("io buffer: invalid write count") + var ErrNegativeCount = errors.New("io buffer: negative count") + var ErrTooLarge = errors.New("io buffer: too large") + func GetBytes(size int) *[]byte + func PutBytes(buf *[]byte) + func PutIoPool(buf IoBuffer) error + type BytePoolContainer struct + func NewBytePoolContainer() *BytePoolContainer + func (B *BytePoolContainer) Get(size int) *[]byte + func (B *BytePoolContainer) Reset() + type IoBuffer interface + Alloc func(int) + Append func(data []byte) error + Bytes func() []byte + Cap func() int + Clone func() IoBuffer + CloseWithError func(err error) + Count func(int32) int32 + Drain func(offset int) + EOF func() bool + Free func() + Grow func(n int) error + Len func() int + Peek func(n int) []byte + Read func(p []byte) (n int, err error) + ReadFrom func(r io.Reader) (n int64, err error) + ReadOnce func(r io.Reader) (n int64, err error) + Reset func() + SetEOF func(eof bool) + String func() string + Write func(p []byte) (n int, err error) + WriteByte func(p byte) error + WriteString func(s string) (n int, err error) + WriteTo func(w io.Writer) (n int64, err error) + WriteUint16 func(p uint16) error + WriteUint32 func(p uint32) error + WriteUint64 func(p uint64) error + func GetIoPool(size int) IoBuffer + func NewIoBuffer(size int) IoBuffer + func NewIoBufferBytes(bytes []byte) IoBuffer + func NewIoBufferEOF() IoBuffer + func NewIoBufferString(s string) IoBuffer + func NewPipe(cap int) IoBuffer + type IoPool struct