Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bb2bs ¶
Bb2bs extracts the backing slice from a bytes.Buffer. The bytes.Buffer can not be used and must be discarded when this function returns.
func Br2bs ¶
Br2bs extracts the backing slice from a bufio.Reader The bufio.Reader can not be used and must be discarded when this function returns.
func Bw2bs ¶
Bw2bs extracts the backing slice from a bufio.Writer The bufio.Writer can not be used and must be discarded when this function returns.
Types ¶
type BufferPool ¶
type BufferPool struct { httputil.BufferPool // implements P httputil.BufferPool // actual underlying buffer pool Sz int }
func (BufferPool) Get ¶
func (b BufferPool) Get() []byte
func (BufferPool) Put ¶
func (b BufferPool) Put(p []byte)
type SingleSizeBufferPool ¶
type SingleSizeBufferPool struct { httputil.BufferPool // implements Sz int // contains filtered or unexported fields }
func (*SingleSizeBufferPool) Get ¶
func (b *SingleSizeBufferPool) Get() []byte
func (*SingleSizeBufferPool) Put ¶
func (b *SingleSizeBufferPool) Put(p []byte)
Click to show internal directories.
Click to hide internal directories.