Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxAddressBufferSize = 259 MaxSocksBufferSize = 515 MaxUdpBufferSize = 16 * 1024 MaxTcpBufferSize = 16 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func NewBufferPool ¶
func NewBufferPool(size int) *BufferPool
func NewBytesBufferPool ¶
func NewBytesBufferPool() *BufferPool
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() *[]byte
func (*BufferPool) GetBytesBuffer ¶
func (bp *BufferPool) GetBytesBuffer() *bytes.Buffer
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(buf *[]byte)
func (*BufferPool) PutBytesBuffer ¶
func (bp *BufferPool) PutBytesBuffer(buf *bytes.Buffer)
Click to show internal directories.
Click to hide internal directories.