Documentation ¶
Overview ¶
Package bytespool implements a series of sync.Pools tailored to safely recycle byte slices and bytes.Buffers. It works by defining a number of buckets, each for slices or Buffers of a certain range of capacities, and directing the Put and Get requests to the appropriate bucket. This package is autogenerated to allow to customize the granularity of the buckets and the range of supported capacities. This version was generated with the following buckets: 256B 512B 1KB 2KB 4KB 8KB 16KB 32KB 64KB 128KB 256KB 512KB 1MB 2MB 4MB 8MB 16MB. It is advisable not to grow/extend the byte slices or bytes.Buffer returned by bytespool, as this incurs allocations. To avoid this, use bytespool to allocate a new object of the desired size, copy the data to the new object and then recycle the original object.
Index ¶
- func Append(buf []byte, v ...byte) []byte
- func GetBufferPool(size int) httputil.BufferPool
- func GetBufioReader(pr io.Reader, size int) *bufio.Reader
- func GetBufioReader128K(pr io.Reader) *bufio.Reader
- func GetBufioReader16K(pr io.Reader) *bufio.Reader
- func GetBufioReader16M(pr io.Reader) *bufio.Reader
- func GetBufioReader1K(pr io.Reader) *bufio.Reader
- func GetBufioReader1M(pr io.Reader) *bufio.Reader
- func GetBufioReader256(pr io.Reader) *bufio.Reader
- func GetBufioReader256K(pr io.Reader) *bufio.Reader
- func GetBufioReader2K(pr io.Reader) *bufio.Reader
- func GetBufioReader2M(pr io.Reader) *bufio.Reader
- func GetBufioReader32K(pr io.Reader) *bufio.Reader
- func GetBufioReader4K(pr io.Reader) *bufio.Reader
- func GetBufioReader4M(pr io.Reader) *bufio.Reader
- func GetBufioReader512(pr io.Reader) *bufio.Reader
- func GetBufioReader512K(pr io.Reader) *bufio.Reader
- func GetBufioReader64K(pr io.Reader) *bufio.Reader
- func GetBufioReader8K(pr io.Reader) *bufio.Reader
- func GetBufioReader8M(pr io.Reader) *bufio.Reader
- func GetBufioWriter(pw io.Writer, size int) *bufio.Writer
- func GetBufioWriter128K(pw io.Writer) *bufio.Writer
- func GetBufioWriter16K(pw io.Writer) *bufio.Writer
- func GetBufioWriter16M(pw io.Writer) *bufio.Writer
- func GetBufioWriter1K(pw io.Writer) *bufio.Writer
- func GetBufioWriter1M(pw io.Writer) *bufio.Writer
- func GetBufioWriter256(pw io.Writer) *bufio.Writer
- func GetBufioWriter256K(pw io.Writer) *bufio.Writer
- func GetBufioWriter2K(pw io.Writer) *bufio.Writer
- func GetBufioWriter2M(pw io.Writer) *bufio.Writer
- func GetBufioWriter32K(pw io.Writer) *bufio.Writer
- func GetBufioWriter4K(pw io.Writer) *bufio.Writer
- func GetBufioWriter4M(pw io.Writer) *bufio.Writer
- func GetBufioWriter512(pw io.Writer) *bufio.Writer
- func GetBufioWriter512K(pw io.Writer) *bufio.Writer
- func GetBufioWriter64K(pw io.Writer) *bufio.Writer
- func GetBufioWriter8K(pw io.Writer) *bufio.Writer
- func GetBufioWriter8M(pw io.Writer) *bufio.Writer
- func GetBytesBuffer(size int) *bytes.Buffer
- func GetBytesBuffer128K() *bytes.Buffer
- func GetBytesBuffer16K() *bytes.Buffer
- func GetBytesBuffer16M() *bytes.Buffer
- func GetBytesBuffer1K() *bytes.Buffer
- func GetBytesBuffer1M() *bytes.Buffer
- func GetBytesBuffer256() *bytes.Buffer
- func GetBytesBuffer256K() *bytes.Buffer
- func GetBytesBuffer2K() *bytes.Buffer
- func GetBytesBuffer2M() *bytes.Buffer
- func GetBytesBuffer32K() *bytes.Buffer
- func GetBytesBuffer4K() *bytes.Buffer
- func GetBytesBuffer4M() *bytes.Buffer
- func GetBytesBuffer512() *bytes.Buffer
- func GetBytesBuffer512K() *bytes.Buffer
- func GetBytesBuffer64K() *bytes.Buffer
- func GetBytesBuffer8K() *bytes.Buffer
- func GetBytesBuffer8M() *bytes.Buffer
- func GetBytesSlice(size int) []byte
- func GetBytesSlice128K() []byte
- func GetBytesSlice16K() []byte
- func GetBytesSlice16M() []byte
- func GetBytesSlice1K() []byte
- func GetBytesSlice1M() []byte
- func GetBytesSlice256() []byte
- func GetBytesSlice256K() []byte
- func GetBytesSlice2K() []byte
- func GetBytesSlice2M() []byte
- func GetBytesSlice32K() []byte
- func GetBytesSlice4K() []byte
- func GetBytesSlice4M() []byte
- func GetBytesSlice512() []byte
- func GetBytesSlice512K() []byte
- func GetBytesSlice64K() []byte
- func GetBytesSlice8K() []byte
- func GetBytesSlice8M() []byte
- func GetBytesSlicePtr(size int) *[]byte
- func GetBytesSlicePtr128K() *[]byte
- func GetBytesSlicePtr16K() *[]byte
- func GetBytesSlicePtr16M() *[]byte
- func GetBytesSlicePtr1K() *[]byte
- func GetBytesSlicePtr1M() *[]byte
- func GetBytesSlicePtr256() *[]byte
- func GetBytesSlicePtr256K() *[]byte
- func GetBytesSlicePtr2K() *[]byte
- func GetBytesSlicePtr2M() *[]byte
- func GetBytesSlicePtr32K() *[]byte
- func GetBytesSlicePtr4K() *[]byte
- func GetBytesSlicePtr4M() *[]byte
- func GetBytesSlicePtr512() *[]byte
- func GetBytesSlicePtr512K() *[]byte
- func GetBytesSlicePtr64K() *[]byte
- func GetBytesSlicePtr8K() *[]byte
- func GetBytesSlicePtr8M() *[]byte
- func PutBufioReader(r *bufio.Reader) bool
- func PutBufioReader128K(r *bufio.Reader) bool
- func PutBufioReader16K(r *bufio.Reader) bool
- func PutBufioReader16M(r *bufio.Reader) bool
- func PutBufioReader1K(r *bufio.Reader) bool
- func PutBufioReader1M(r *bufio.Reader) bool
- func PutBufioReader256(r *bufio.Reader) bool
- func PutBufioReader256K(r *bufio.Reader) bool
- func PutBufioReader2K(r *bufio.Reader) bool
- func PutBufioReader2M(r *bufio.Reader) bool
- func PutBufioReader32K(r *bufio.Reader) bool
- func PutBufioReader4K(r *bufio.Reader) bool
- func PutBufioReader4M(r *bufio.Reader) bool
- func PutBufioReader512(r *bufio.Reader) bool
- func PutBufioReader512K(r *bufio.Reader) bool
- func PutBufioReader64K(r *bufio.Reader) bool
- func PutBufioReader8K(r *bufio.Reader) bool
- func PutBufioReader8M(r *bufio.Reader) bool
- func PutBufioWriter(w *bufio.Writer) bool
- func PutBufioWriter128K(w *bufio.Writer) bool
- func PutBufioWriter16K(w *bufio.Writer) bool
- func PutBufioWriter16M(w *bufio.Writer) bool
- func PutBufioWriter1K(w *bufio.Writer) bool
- func PutBufioWriter1M(w *bufio.Writer) bool
- func PutBufioWriter256(w *bufio.Writer) bool
- func PutBufioWriter256K(w *bufio.Writer) bool
- func PutBufioWriter2K(w *bufio.Writer) bool
- func PutBufioWriter2M(w *bufio.Writer) bool
- func PutBufioWriter32K(w *bufio.Writer) bool
- func PutBufioWriter4K(w *bufio.Writer) bool
- func PutBufioWriter4M(w *bufio.Writer) bool
- func PutBufioWriter512(w *bufio.Writer) bool
- func PutBufioWriter512K(w *bufio.Writer) bool
- func PutBufioWriter64K(w *bufio.Writer) bool
- func PutBufioWriter8K(w *bufio.Writer) bool
- func PutBufioWriter8M(w *bufio.Writer) bool
- func PutBytesBuffer(b *bytes.Buffer) bool
- func PutBytesBuffer128K(b *bytes.Buffer) bool
- func PutBytesBuffer16K(b *bytes.Buffer) bool
- func PutBytesBuffer16M(b *bytes.Buffer) bool
- func PutBytesBuffer1K(b *bytes.Buffer) bool
- func PutBytesBuffer1M(b *bytes.Buffer) bool
- func PutBytesBuffer256(b *bytes.Buffer) bool
- func PutBytesBuffer256K(b *bytes.Buffer) bool
- func PutBytesBuffer2K(b *bytes.Buffer) bool
- func PutBytesBuffer2M(b *bytes.Buffer) bool
- func PutBytesBuffer32K(b *bytes.Buffer) bool
- func PutBytesBuffer4K(b *bytes.Buffer) bool
- func PutBytesBuffer4M(b *bytes.Buffer) bool
- func PutBytesBuffer512(b *bytes.Buffer) bool
- func PutBytesBuffer512K(b *bytes.Buffer) bool
- func PutBytesBuffer64K(b *bytes.Buffer) bool
- func PutBytesBuffer8K(b *bytes.Buffer) bool
- func PutBytesBuffer8M(b *bytes.Buffer) bool
- func PutBytesSlice(b []byte) bool
- func PutBytesSlice128K(p []byte) bool
- func PutBytesSlice16K(p []byte) bool
- func PutBytesSlice16M(p []byte) bool
- func PutBytesSlice1K(p []byte) bool
- func PutBytesSlice1M(p []byte) bool
- func PutBytesSlice256(p []byte) bool
- func PutBytesSlice256K(p []byte) bool
- func PutBytesSlice2K(p []byte) bool
- func PutBytesSlice2M(p []byte) bool
- func PutBytesSlice32K(p []byte) bool
- func PutBytesSlice4K(p []byte) bool
- func PutBytesSlice4M(p []byte) bool
- func PutBytesSlice512(p []byte) bool
- func PutBytesSlice512K(p []byte) bool
- func PutBytesSlice64K(p []byte) bool
- func PutBytesSlice8K(p []byte) bool
- func PutBytesSlice8M(p []byte) bool
- func PutBytesSlicePtr(b *[]byte) bool
- func PutBytesSlicePtr128K(p *[]byte) bool
- func PutBytesSlicePtr16K(p *[]byte) bool
- func PutBytesSlicePtr16M(p *[]byte) bool
- func PutBytesSlicePtr1K(p *[]byte) bool
- func PutBytesSlicePtr1M(p *[]byte) bool
- func PutBytesSlicePtr256(p *[]byte) bool
- func PutBytesSlicePtr256K(p *[]byte) bool
- func PutBytesSlicePtr2K(p *[]byte) bool
- func PutBytesSlicePtr2M(p *[]byte) bool
- func PutBytesSlicePtr32K(p *[]byte) bool
- func PutBytesSlicePtr4K(p *[]byte) bool
- func PutBytesSlicePtr4M(p *[]byte) bool
- func PutBytesSlicePtr512(p *[]byte) bool
- func PutBytesSlicePtr512K(p *[]byte) bool
- func PutBytesSlicePtr64K(p *[]byte) bool
- func PutBytesSlicePtr8K(p *[]byte) bool
- func PutBytesSlicePtr8M(p *[]byte) bool
- type BufferPool128K
- type BufferPool16K
- type BufferPool16M
- type BufferPool1K
- type BufferPool1M
- type BufferPool256
- type BufferPool256K
- type BufferPool2K
- type BufferPool2M
- type BufferPool32K
- type BufferPool4K
- type BufferPool4M
- type BufferPool512
- type BufferPool512K
- type BufferPool64K
- type BufferPool8K
- type BufferPool8M
- type BufferPtrPool128K
- type BufferPtrPool16K
- type BufferPtrPool16M
- type BufferPtrPool1K
- type BufferPtrPool1M
- type BufferPtrPool256
- type BufferPtrPool256K
- type BufferPtrPool2K
- type BufferPtrPool2M
- type BufferPtrPool32K
- type BufferPtrPool4K
- type BufferPtrPool4M
- type BufferPtrPool512
- type BufferPtrPool512K
- type BufferPtrPool64K
- type BufferPtrPool8K
- type BufferPtrPool8M
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append appends the specified bytes to the buf byte slice. The buf byte slice passed to Append MUST NOT be used after Append is called: only the byte slice returned should be used.
func GetBufferPool ¶
func GetBufferPool(size int) httputil.BufferPool
GetBufferPool returns a httputil.BufferPool that returns byte slices of capacity greater or equal than size, and of size size.
func GetBufioReader ¶
GetBufioReader returns a bufio.Reader of at least the specified size.
func GetBufioReader128K ¶
GetBufioReader128K returns a bufio.Reader with an internal buffer size of at least 131072.
func GetBufioReader16K ¶
GetBufioReader16K returns a bufio.Reader with an internal buffer size of at least 16384.
func GetBufioReader16M ¶
GetBufioReader16M returns a bufio.Reader with an internal buffer size of at least 16777216.
func GetBufioReader1K ¶
GetBufioReader1K returns a bufio.Reader with an internal buffer size of at least 1024.
func GetBufioReader1M ¶
GetBufioReader1M returns a bufio.Reader with an internal buffer size of at least 1048576.
func GetBufioReader256 ¶
GetBufioReader256 returns a bufio.Reader with an internal buffer size of at least 256.
func GetBufioReader256K ¶
GetBufioReader256K returns a bufio.Reader with an internal buffer size of at least 262144.
func GetBufioReader2K ¶
GetBufioReader2K returns a bufio.Reader with an internal buffer size of at least 2048.
func GetBufioReader2M ¶
GetBufioReader2M returns a bufio.Reader with an internal buffer size of at least 2097152.
func GetBufioReader32K ¶
GetBufioReader32K returns a bufio.Reader with an internal buffer size of at least 32768.
func GetBufioReader4K ¶
GetBufioReader4K returns a bufio.Reader with an internal buffer size of at least 4096.
func GetBufioReader4M ¶
GetBufioReader4M returns a bufio.Reader with an internal buffer size of at least 4194304.
func GetBufioReader512 ¶
GetBufioReader512 returns a bufio.Reader with an internal buffer size of at least 512.
func GetBufioReader512K ¶
GetBufioReader512K returns a bufio.Reader with an internal buffer size of at least 524288.
func GetBufioReader64K ¶
GetBufioReader64K returns a bufio.Reader with an internal buffer size of at least 65536.
func GetBufioReader8K ¶
GetBufioReader8K returns a bufio.Reader with an internal buffer size of at least 8192.
func GetBufioReader8M ¶
GetBufioReader8M returns a bufio.Reader with an internal buffer size of at least 8388608.
func GetBufioWriter ¶
GetBufioWriter returns a bufio.Writer of at least the specified size.
func GetBufioWriter128K ¶
GetBufioWriter128K returns a bufio.Writer with an internal buffer size of at least 131072.
func GetBufioWriter16K ¶
GetBufioWriter16K returns a bufio.Writer with an internal buffer size of at least 16384.
func GetBufioWriter16M ¶
GetBufioWriter16M returns a bufio.Writer with an internal buffer size of at least 16777216.
func GetBufioWriter1K ¶
GetBufioWriter1K returns a bufio.Writer with an internal buffer size of at least 1024.
func GetBufioWriter1M ¶
GetBufioWriter1M returns a bufio.Writer with an internal buffer size of at least 1048576.
func GetBufioWriter256 ¶
GetBufioWriter256 returns a bufio.Writer with an internal buffer size of at least 256.
func GetBufioWriter256K ¶
GetBufioWriter256K returns a bufio.Writer with an internal buffer size of at least 262144.
func GetBufioWriter2K ¶
GetBufioWriter2K returns a bufio.Writer with an internal buffer size of at least 2048.
func GetBufioWriter2M ¶
GetBufioWriter2M returns a bufio.Writer with an internal buffer size of at least 2097152.
func GetBufioWriter32K ¶
GetBufioWriter32K returns a bufio.Writer with an internal buffer size of at least 32768.
func GetBufioWriter4K ¶
GetBufioWriter4K returns a bufio.Writer with an internal buffer size of at least 4096.
func GetBufioWriter4M ¶
GetBufioWriter4M returns a bufio.Writer with an internal buffer size of at least 4194304.
func GetBufioWriter512 ¶
GetBufioWriter512 returns a bufio.Writer with an internal buffer size of at least 512.
func GetBufioWriter512K ¶
GetBufioWriter512K returns a bufio.Writer with an internal buffer size of at least 524288.
func GetBufioWriter64K ¶
GetBufioWriter64K returns a bufio.Writer with an internal buffer size of at least 65536.
func GetBufioWriter8K ¶
GetBufioWriter8K returns a bufio.Writer with an internal buffer size of at least 8192.
func GetBufioWriter8M ¶
GetBufioWriter8M returns a bufio.Writer with an internal buffer size of at least 8388608.
func GetBytesBuffer ¶
GetBytesBuffer returns a bytes.Buffer with at least size bytes of capacity. If your code uses buffers of static size, it is more performant to call one of the GetBytesBufferXxx functions instead. Calling GetBytesBuffer with a negative size panics.
func GetBytesBuffer128K ¶
GetBytesBuffer128K gets a bytes.Buffer with a capacity of at least 128K bytes.
func GetBytesBuffer16K ¶
GetBytesBuffer16K gets a bytes.Buffer with a capacity of at least 16K bytes.
func GetBytesBuffer16M ¶
GetBytesBuffer16M gets a bytes.Buffer with a capacity of at least 16M bytes.
func GetBytesBuffer1K ¶
GetBytesBuffer1K gets a bytes.Buffer with a capacity of at least 1K bytes.
func GetBytesBuffer1M ¶
GetBytesBuffer1M gets a bytes.Buffer with a capacity of at least 1M bytes.
func GetBytesBuffer256 ¶
GetBytesBuffer256 gets a bytes.Buffer with a capacity of at least 256 bytes.
func GetBytesBuffer256K ¶
GetBytesBuffer256K gets a bytes.Buffer with a capacity of at least 256K bytes.
func GetBytesBuffer2K ¶
GetBytesBuffer2K gets a bytes.Buffer with a capacity of at least 2K bytes.
func GetBytesBuffer2M ¶
GetBytesBuffer2M gets a bytes.Buffer with a capacity of at least 2M bytes.
func GetBytesBuffer32K ¶
GetBytesBuffer32K gets a bytes.Buffer with a capacity of at least 32K bytes.
func GetBytesBuffer4K ¶
GetBytesBuffer4K gets a bytes.Buffer with a capacity of at least 4K bytes.
func GetBytesBuffer4M ¶
GetBytesBuffer4M gets a bytes.Buffer with a capacity of at least 4M bytes.
func GetBytesBuffer512 ¶
GetBytesBuffer512 gets a bytes.Buffer with a capacity of at least 512 bytes.
func GetBytesBuffer512K ¶
GetBytesBuffer512K gets a bytes.Buffer with a capacity of at least 512K bytes.
func GetBytesBuffer64K ¶
GetBytesBuffer64K gets a bytes.Buffer with a capacity of at least 64K bytes.
func GetBytesBuffer8K ¶
GetBytesBuffer8K gets a bytes.Buffer with a capacity of at least 8K bytes.
func GetBytesBuffer8M ¶
GetBytesBuffer8M gets a bytes.Buffer with a capacity of at least 8M bytes.
func GetBytesSlice ¶
GetBytesSlice returns a byte slice with at least size bytes of capacity and length size. If your code uses buffers of static size, it is more performant to call one of the GetBytesSliceXxx functions instead. GetBytesSlice is somewhat slower than GetBytesSlicePtr, but it is significantly easier to use. Calling GetBytesSlice with a negative size panics.
func GetBytesSlice128K ¶
func GetBytesSlice128K() []byte
GetBytesSlice128K gets a byte slice with a capacity of at least 128K bytes and length of 128K bytes. GetBytesSlice128K is somewhat slower than GetBytesSlicePtr128K, but it is significantly easier to use.
func GetBytesSlice16K ¶
func GetBytesSlice16K() []byte
GetBytesSlice16K gets a byte slice with a capacity of at least 16K bytes and length of 16K bytes. GetBytesSlice16K is somewhat slower than GetBytesSlicePtr16K, but it is significantly easier to use.
func GetBytesSlice16M ¶
func GetBytesSlice16M() []byte
GetBytesSlice16M gets a byte slice with a capacity of at least 16M bytes and length of 16M bytes. GetBytesSlice16M is somewhat slower than GetBytesSlicePtr16M, but it is significantly easier to use.
func GetBytesSlice1K ¶
func GetBytesSlice1K() []byte
GetBytesSlice1K gets a byte slice with a capacity of at least 1K bytes and length of 1K bytes. GetBytesSlice1K is somewhat slower than GetBytesSlicePtr1K, but it is significantly easier to use.
func GetBytesSlice1M ¶
func GetBytesSlice1M() []byte
GetBytesSlice1M gets a byte slice with a capacity of at least 1M bytes and length of 1M bytes. GetBytesSlice1M is somewhat slower than GetBytesSlicePtr1M, but it is significantly easier to use.
func GetBytesSlice256 ¶
func GetBytesSlice256() []byte
GetBytesSlice256 gets a byte slice with a capacity of at least 256 bytes and length of 256 bytes. GetBytesSlice256 is somewhat slower than GetBytesSlicePtr256, but it is significantly easier to use.
func GetBytesSlice256K ¶
func GetBytesSlice256K() []byte
GetBytesSlice256K gets a byte slice with a capacity of at least 256K bytes and length of 256K bytes. GetBytesSlice256K is somewhat slower than GetBytesSlicePtr256K, but it is significantly easier to use.
func GetBytesSlice2K ¶
func GetBytesSlice2K() []byte
GetBytesSlice2K gets a byte slice with a capacity of at least 2K bytes and length of 2K bytes. GetBytesSlice2K is somewhat slower than GetBytesSlicePtr2K, but it is significantly easier to use.
func GetBytesSlice2M ¶
func GetBytesSlice2M() []byte
GetBytesSlice2M gets a byte slice with a capacity of at least 2M bytes and length of 2M bytes. GetBytesSlice2M is somewhat slower than GetBytesSlicePtr2M, but it is significantly easier to use.
func GetBytesSlice32K ¶
func GetBytesSlice32K() []byte
GetBytesSlice32K gets a byte slice with a capacity of at least 32K bytes and length of 32K bytes. GetBytesSlice32K is somewhat slower than GetBytesSlicePtr32K, but it is significantly easier to use.
func GetBytesSlice4K ¶
func GetBytesSlice4K() []byte
GetBytesSlice4K gets a byte slice with a capacity of at least 4K bytes and length of 4K bytes. GetBytesSlice4K is somewhat slower than GetBytesSlicePtr4K, but it is significantly easier to use.
func GetBytesSlice4M ¶
func GetBytesSlice4M() []byte
GetBytesSlice4M gets a byte slice with a capacity of at least 4M bytes and length of 4M bytes. GetBytesSlice4M is somewhat slower than GetBytesSlicePtr4M, but it is significantly easier to use.
func GetBytesSlice512 ¶
func GetBytesSlice512() []byte
GetBytesSlice512 gets a byte slice with a capacity of at least 512 bytes and length of 512 bytes. GetBytesSlice512 is somewhat slower than GetBytesSlicePtr512, but it is significantly easier to use.
func GetBytesSlice512K ¶
func GetBytesSlice512K() []byte
GetBytesSlice512K gets a byte slice with a capacity of at least 512K bytes and length of 512K bytes. GetBytesSlice512K is somewhat slower than GetBytesSlicePtr512K, but it is significantly easier to use.
func GetBytesSlice64K ¶
func GetBytesSlice64K() []byte
GetBytesSlice64K gets a byte slice with a capacity of at least 64K bytes and length of 64K bytes. GetBytesSlice64K is somewhat slower than GetBytesSlicePtr64K, but it is significantly easier to use.
func GetBytesSlice8K ¶
func GetBytesSlice8K() []byte
GetBytesSlice8K gets a byte slice with a capacity of at least 8K bytes and length of 8K bytes. GetBytesSlice8K is somewhat slower than GetBytesSlicePtr8K, but it is significantly easier to use.
func GetBytesSlice8M ¶
func GetBytesSlice8M() []byte
GetBytesSlice8M gets a byte slice with a capacity of at least 8M bytes and length of 8M bytes. GetBytesSlice8M is somewhat slower than GetBytesSlicePtr8M, but it is significantly easier to use.
func GetBytesSlicePtr ¶
GetBytesSlicePtr is like GetBytesSlice but returns a pointer to the byte slice. GetBytesSlicePtr is somewhat faster than GetBytesSlice, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr the original pointer returned by GetBytesSlicePtr to recycle the slice.
func GetBytesSlicePtr128K ¶
func GetBytesSlicePtr128K() *[]byte
GetBytesSlicePtr128K is like GetBytesSlice128K but returns a pointer to the slice instead. GetBytesSlicePtr128K is somewhat faster than GetBytesSlice128K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr128K the original pointer returned by GetBytesSlicePtr128K to recycle the slice.
func GetBytesSlicePtr16K ¶
func GetBytesSlicePtr16K() *[]byte
GetBytesSlicePtr16K is like GetBytesSlice16K but returns a pointer to the slice instead. GetBytesSlicePtr16K is somewhat faster than GetBytesSlice16K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr16K the original pointer returned by GetBytesSlicePtr16K to recycle the slice.
func GetBytesSlicePtr16M ¶
func GetBytesSlicePtr16M() *[]byte
GetBytesSlicePtr16M is like GetBytesSlice16M but returns a pointer to the slice instead. GetBytesSlicePtr16M is somewhat faster than GetBytesSlice16M, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr16M the original pointer returned by GetBytesSlicePtr16M to recycle the slice.
func GetBytesSlicePtr1K ¶
func GetBytesSlicePtr1K() *[]byte
GetBytesSlicePtr1K is like GetBytesSlice1K but returns a pointer to the slice instead. GetBytesSlicePtr1K is somewhat faster than GetBytesSlice1K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr1K the original pointer returned by GetBytesSlicePtr1K to recycle the slice.
func GetBytesSlicePtr1M ¶
func GetBytesSlicePtr1M() *[]byte
GetBytesSlicePtr1M is like GetBytesSlice1M but returns a pointer to the slice instead. GetBytesSlicePtr1M is somewhat faster than GetBytesSlice1M, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr1M the original pointer returned by GetBytesSlicePtr1M to recycle the slice.
func GetBytesSlicePtr256 ¶
func GetBytesSlicePtr256() *[]byte
GetBytesSlicePtr256 is like GetBytesSlice256 but returns a pointer to the slice instead. GetBytesSlicePtr256 is somewhat faster than GetBytesSlice256, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr256 the original pointer returned by GetBytesSlicePtr256 to recycle the slice.
func GetBytesSlicePtr256K ¶
func GetBytesSlicePtr256K() *[]byte
GetBytesSlicePtr256K is like GetBytesSlice256K but returns a pointer to the slice instead. GetBytesSlicePtr256K is somewhat faster than GetBytesSlice256K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr256K the original pointer returned by GetBytesSlicePtr256K to recycle the slice.
func GetBytesSlicePtr2K ¶
func GetBytesSlicePtr2K() *[]byte
GetBytesSlicePtr2K is like GetBytesSlice2K but returns a pointer to the slice instead. GetBytesSlicePtr2K is somewhat faster than GetBytesSlice2K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr2K the original pointer returned by GetBytesSlicePtr2K to recycle the slice.
func GetBytesSlicePtr2M ¶
func GetBytesSlicePtr2M() *[]byte
GetBytesSlicePtr2M is like GetBytesSlice2M but returns a pointer to the slice instead. GetBytesSlicePtr2M is somewhat faster than GetBytesSlice2M, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr2M the original pointer returned by GetBytesSlicePtr2M to recycle the slice.
func GetBytesSlicePtr32K ¶
func GetBytesSlicePtr32K() *[]byte
GetBytesSlicePtr32K is like GetBytesSlice32K but returns a pointer to the slice instead. GetBytesSlicePtr32K is somewhat faster than GetBytesSlice32K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr32K the original pointer returned by GetBytesSlicePtr32K to recycle the slice.
func GetBytesSlicePtr4K ¶
func GetBytesSlicePtr4K() *[]byte
GetBytesSlicePtr4K is like GetBytesSlice4K but returns a pointer to the slice instead. GetBytesSlicePtr4K is somewhat faster than GetBytesSlice4K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr4K the original pointer returned by GetBytesSlicePtr4K to recycle the slice.
func GetBytesSlicePtr4M ¶
func GetBytesSlicePtr4M() *[]byte
GetBytesSlicePtr4M is like GetBytesSlice4M but returns a pointer to the slice instead. GetBytesSlicePtr4M is somewhat faster than GetBytesSlice4M, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr4M the original pointer returned by GetBytesSlicePtr4M to recycle the slice.
func GetBytesSlicePtr512 ¶
func GetBytesSlicePtr512() *[]byte
GetBytesSlicePtr512 is like GetBytesSlice512 but returns a pointer to the slice instead. GetBytesSlicePtr512 is somewhat faster than GetBytesSlice512, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr512 the original pointer returned by GetBytesSlicePtr512 to recycle the slice.
func GetBytesSlicePtr512K ¶
func GetBytesSlicePtr512K() *[]byte
GetBytesSlicePtr512K is like GetBytesSlice512K but returns a pointer to the slice instead. GetBytesSlicePtr512K is somewhat faster than GetBytesSlice512K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr512K the original pointer returned by GetBytesSlicePtr512K to recycle the slice.
func GetBytesSlicePtr64K ¶
func GetBytesSlicePtr64K() *[]byte
GetBytesSlicePtr64K is like GetBytesSlice64K but returns a pointer to the slice instead. GetBytesSlicePtr64K is somewhat faster than GetBytesSlice64K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr64K the original pointer returned by GetBytesSlicePtr64K to recycle the slice.
func GetBytesSlicePtr8K ¶
func GetBytesSlicePtr8K() *[]byte
GetBytesSlicePtr8K is like GetBytesSlice8K but returns a pointer to the slice instead. GetBytesSlicePtr8K is somewhat faster than GetBytesSlice8K, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr8K the original pointer returned by GetBytesSlicePtr8K to recycle the slice.
func GetBytesSlicePtr8M ¶
func GetBytesSlicePtr8M() *[]byte
GetBytesSlicePtr8M is like GetBytesSlice8M but returns a pointer to the slice instead. GetBytesSlicePtr8M is somewhat faster than GetBytesSlice8M, but it is significantly more complicated to use, as you need to provide to PutBytesSlicePtr8M the original pointer returned by GetBytesSlicePtr8M to recycle the slice.
func PutBufioReader ¶
PutBufioReader recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader callers should not use the bufio.Reader anymore and drop all references to it. If you statically know the Size() of the bufio.Reader, it may be more performant to call PutBufioReaderXXX.
func PutBufioReader128K ¶
PutBufioReader128K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader128K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader128K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader128K is optimized for bufio.Reader with Size() in the range (131072, 262144], but it accepts also other sizes.
func PutBufioReader16K ¶
PutBufioReader16K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader16K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader16K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader16K is optimized for bufio.Reader with Size() in the range (16384, 32768], but it accepts also other sizes.
func PutBufioReader16M ¶
PutBufioReader16M recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader16M is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader16M callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader16M is optimized for bufio.Reader with Size() in the range (16777216, 33554432], but it accepts also other sizes.
func PutBufioReader1K ¶
PutBufioReader1K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader1K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader1K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader1K is optimized for bufio.Reader with Size() in the range (1024, 2048], but it accepts also other sizes.
func PutBufioReader1M ¶
PutBufioReader1M recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader1M is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader1M callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader1M is optimized for bufio.Reader with Size() in the range (1048576, 2097152], but it accepts also other sizes.
func PutBufioReader256 ¶
PutBufioReader256 recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader256 is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader256 callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader256 is optimized for bufio.Reader with Size() in the range (256, 512], but it accepts also other sizes.
func PutBufioReader256K ¶
PutBufioReader256K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader256K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader256K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader256K is optimized for bufio.Reader with Size() in the range (262144, 524288], but it accepts also other sizes.
func PutBufioReader2K ¶
PutBufioReader2K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader2K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader2K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader2K is optimized for bufio.Reader with Size() in the range (2048, 4096], but it accepts also other sizes.
func PutBufioReader2M ¶
PutBufioReader2M recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader2M is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader2M callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader2M is optimized for bufio.Reader with Size() in the range (2097152, 4194304], but it accepts also other sizes.
func PutBufioReader32K ¶
PutBufioReader32K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader32K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader32K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader32K is optimized for bufio.Reader with Size() in the range (32768, 65536], but it accepts also other sizes.
func PutBufioReader4K ¶
PutBufioReader4K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader4K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader4K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader4K is optimized for bufio.Reader with Size() in the range (4096, 8192], but it accepts also other sizes.
func PutBufioReader4M ¶
PutBufioReader4M recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader4M is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader4M callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader4M is optimized for bufio.Reader with Size() in the range (4194304, 8388608], but it accepts also other sizes.
func PutBufioReader512 ¶
PutBufioReader512 recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader512 is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader512 callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader512 is optimized for bufio.Reader with Size() in the range (512, 1024], but it accepts also other sizes.
func PutBufioReader512K ¶
PutBufioReader512K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader512K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader512K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader512K is optimized for bufio.Reader with Size() in the range (524288, 1048576], but it accepts also other sizes.
func PutBufioReader64K ¶
PutBufioReader64K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader64K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader64K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader64K is optimized for bufio.Reader with Size() in the range (65536, 131072], but it accepts also other sizes.
func PutBufioReader8K ¶
PutBufioReader8K recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader8K is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader8K callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader8K is optimized for bufio.Reader with Size() in the range (8192, 16384], but it accepts also other sizes.
func PutBufioReader8M ¶
PutBufioReader8M recycles the passed bufio.Reader. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Reader.Reset() is called internally, so calling Reset before PutBufioReader8M is not required. If it is not recycled, the bufio.Reader is left untouched. After a succesfull call to PutBufioReader8M callers should not use the bufio.Reader anymore and drop all references to it. PutBufioReader8M is optimized for bufio.Reader with Size() in the range (8388608, 16777216], but it accepts also other sizes.
func PutBufioWriter ¶
PutBufioWriter recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter callers should not use the bufio.Writer anymore and drop all references to it. If you statically know the Size() of the bufio.Writer, it may be more performant to call PutBufioWriterXXX.
func PutBufioWriter128K ¶
PutBufioWriter128K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter128K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter128K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter128K is optimized for bufio.Writer with Size() in the range (131072, 262144], but it accepts also other sizes.
func PutBufioWriter16K ¶
PutBufioWriter16K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter16K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter16K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter16K is optimized for bufio.Writer with Size() in the range (16384, 32768], but it accepts also other sizes.
func PutBufioWriter16M ¶
PutBufioWriter16M recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter16M is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter16M callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter16M is optimized for bufio.Writer with Size() in the range (16777216, 33554432], but it accepts also other sizes.
func PutBufioWriter1K ¶
PutBufioWriter1K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter1K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter1K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter1K is optimized for bufio.Writer with Size() in the range (1024, 2048], but it accepts also other sizes.
func PutBufioWriter1M ¶
PutBufioWriter1M recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter1M is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter1M callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter1M is optimized for bufio.Writer with Size() in the range (1048576, 2097152], but it accepts also other sizes.
func PutBufioWriter256 ¶
PutBufioWriter256 recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter256 is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter256 callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter256 is optimized for bufio.Writer with Size() in the range (256, 512], but it accepts also other sizes.
func PutBufioWriter256K ¶
PutBufioWriter256K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter256K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter256K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter256K is optimized for bufio.Writer with Size() in the range (262144, 524288], but it accepts also other sizes.
func PutBufioWriter2K ¶
PutBufioWriter2K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter2K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter2K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter2K is optimized for bufio.Writer with Size() in the range (2048, 4096], but it accepts also other sizes.
func PutBufioWriter2M ¶
PutBufioWriter2M recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter2M is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter2M callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter2M is optimized for bufio.Writer with Size() in the range (2097152, 4194304], but it accepts also other sizes.
func PutBufioWriter32K ¶
PutBufioWriter32K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter32K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter32K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter32K is optimized for bufio.Writer with Size() in the range (32768, 65536], but it accepts also other sizes.
func PutBufioWriter4K ¶
PutBufioWriter4K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter4K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter4K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter4K is optimized for bufio.Writer with Size() in the range (4096, 8192], but it accepts also other sizes.
func PutBufioWriter4M ¶
PutBufioWriter4M recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter4M is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter4M callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter4M is optimized for bufio.Writer with Size() in the range (4194304, 8388608], but it accepts also other sizes.
func PutBufioWriter512 ¶
PutBufioWriter512 recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter512 is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter512 callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter512 is optimized for bufio.Writer with Size() in the range (512, 1024], but it accepts also other sizes.
func PutBufioWriter512K ¶
PutBufioWriter512K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter512K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter512K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter512K is optimized for bufio.Writer with Size() in the range (524288, 1048576], but it accepts also other sizes.
func PutBufioWriter64K ¶
PutBufioWriter64K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter64K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter64K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter64K is optimized for bufio.Writer with Size() in the range (65536, 131072], but it accepts also other sizes.
func PutBufioWriter8K ¶
PutBufioWriter8K recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter8K is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter8K callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter8K is optimized for bufio.Writer with Size() in the range (8192, 16384], but it accepts also other sizes.
func PutBufioWriter8M ¶
PutBufioWriter8M recycles the passed bufio.Writer. It returns true if it's recycled, and false otherwise. If it's recycled, bufio.Writer.Reset() is called internally, so calling Reset before PutBufioWriter8M is not required. If it is not recycled, the bufio.Writer is left untouched. After a succesfull call to PutBufioWriter8M callers should not use the bufio.Writer anymore and drop all references to it. PutBufioWriter8M is optimized for bufio.Writer with Size() in the range (8388608, 16777216], but it accepts also other sizes.
func PutBytesBuffer ¶
PutBytesBuffer recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer.
func PutBytesBuffer128K ¶
PutBytesBuffer128K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer128K is optimized for bytes.Buffer of capacity [131072, 262144) but will accepts other sizes as well.
func PutBytesBuffer16K ¶
PutBytesBuffer16K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer16K is optimized for bytes.Buffer of capacity [16384, 32768) but will accepts other sizes as well.
func PutBytesBuffer16M ¶
PutBytesBuffer16M recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer16M is optimized for bytes.Buffer of capacity [16777216, 33554432) but will accepts other sizes as well.
func PutBytesBuffer1K ¶
PutBytesBuffer1K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer1K is optimized for bytes.Buffer of capacity [1024, 2048) but will accepts other sizes as well.
func PutBytesBuffer1M ¶
PutBytesBuffer1M recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer1M is optimized for bytes.Buffer of capacity [1048576, 2097152) but will accepts other sizes as well.
func PutBytesBuffer256 ¶
PutBytesBuffer256 recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer256 is optimized for bytes.Buffer of capacity [256, 512) but will accepts other sizes as well.
func PutBytesBuffer256K ¶
PutBytesBuffer256K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer256K is optimized for bytes.Buffer of capacity [262144, 524288) but will accepts other sizes as well.
func PutBytesBuffer2K ¶
PutBytesBuffer2K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer2K is optimized for bytes.Buffer of capacity [2048, 4096) but will accepts other sizes as well.
func PutBytesBuffer2M ¶
PutBytesBuffer2M recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer2M is optimized for bytes.Buffer of capacity [2097152, 4194304) but will accepts other sizes as well.
func PutBytesBuffer32K ¶
PutBytesBuffer32K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer32K is optimized for bytes.Buffer of capacity [32768, 65536) but will accepts other sizes as well.
func PutBytesBuffer4K ¶
PutBytesBuffer4K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer4K is optimized for bytes.Buffer of capacity [4096, 8192) but will accepts other sizes as well.
func PutBytesBuffer4M ¶
PutBytesBuffer4M recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer4M is optimized for bytes.Buffer of capacity [4194304, 8388608) but will accepts other sizes as well.
func PutBytesBuffer512 ¶
PutBytesBuffer512 recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer512 is optimized for bytes.Buffer of capacity [512, 1024) but will accepts other sizes as well.
func PutBytesBuffer512K ¶
PutBytesBuffer512K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer512K is optimized for bytes.Buffer of capacity [524288, 1048576) but will accepts other sizes as well.
func PutBytesBuffer64K ¶
PutBytesBuffer64K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer64K is optimized for bytes.Buffer of capacity [65536, 131072) but will accepts other sizes as well.
func PutBytesBuffer8K ¶
PutBytesBuffer8K recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer8K is optimized for bytes.Buffer of capacity [8192, 16384) but will accepts other sizes as well.
func PutBytesBuffer8M ¶
PutBytesBuffer8M recycles the passed bytes.Buffer. If the bytes.Buffer can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is unmodified, otherwise the bytes.Buffer is recycled and true is returned. In the latter case, the caller should never use again the passed bytes.Buffer. PutBytesBuffer8M is optimized for bytes.Buffer of capacity [8388608, 16777216) but will accepts other sizes as well.
func PutBytesSlice ¶
func PutBytesSlice128K ¶
PutBytesSlice128K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice128K is optimized for byte slice of capacity [131072, 262144) but will accepts other sizes as well. PutBytesSlice128K, contrary to PutBytesSlicePtr128K, will perform a pointer-sized allocation for each call.
func PutBytesSlice16K ¶
PutBytesSlice16K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice16K is optimized for byte slice of capacity [16384, 32768) but will accepts other sizes as well. PutBytesSlice16K, contrary to PutBytesSlicePtr16K, will perform a pointer-sized allocation for each call.
func PutBytesSlice16M ¶
PutBytesSlice16M recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice16M is optimized for byte slice of capacity [16777216, 33554432) but will accepts other sizes as well. PutBytesSlice16M, contrary to PutBytesSlicePtr16M, will perform a pointer-sized allocation for each call.
func PutBytesSlice1K ¶
PutBytesSlice1K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice1K is optimized for byte slice of capacity [1024, 2048) but will accepts other sizes as well. PutBytesSlice1K, contrary to PutBytesSlicePtr1K, will perform a pointer-sized allocation for each call.
func PutBytesSlice1M ¶
PutBytesSlice1M recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice1M is optimized for byte slice of capacity [1048576, 2097152) but will accepts other sizes as well. PutBytesSlice1M, contrary to PutBytesSlicePtr1M, will perform a pointer-sized allocation for each call.
func PutBytesSlice256 ¶
PutBytesSlice256 recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice256 is optimized for byte slice of capacity [256, 512) but will accepts other sizes as well. PutBytesSlice256, contrary to PutBytesSlicePtr256, will perform a pointer-sized allocation for each call.
func PutBytesSlice256K ¶
PutBytesSlice256K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice256K is optimized for byte slice of capacity [262144, 524288) but will accepts other sizes as well. PutBytesSlice256K, contrary to PutBytesSlicePtr256K, will perform a pointer-sized allocation for each call.
func PutBytesSlice2K ¶
PutBytesSlice2K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice2K is optimized for byte slice of capacity [2048, 4096) but will accepts other sizes as well. PutBytesSlice2K, contrary to PutBytesSlicePtr2K, will perform a pointer-sized allocation for each call.
func PutBytesSlice2M ¶
PutBytesSlice2M recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice2M is optimized for byte slice of capacity [2097152, 4194304) but will accepts other sizes as well. PutBytesSlice2M, contrary to PutBytesSlicePtr2M, will perform a pointer-sized allocation for each call.
func PutBytesSlice32K ¶
PutBytesSlice32K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice32K is optimized for byte slice of capacity [32768, 65536) but will accepts other sizes as well. PutBytesSlice32K, contrary to PutBytesSlicePtr32K, will perform a pointer-sized allocation for each call.
func PutBytesSlice4K ¶
PutBytesSlice4K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice4K is optimized for byte slice of capacity [4096, 8192) but will accepts other sizes as well. PutBytesSlice4K, contrary to PutBytesSlicePtr4K, will perform a pointer-sized allocation for each call.
func PutBytesSlice4M ¶
PutBytesSlice4M recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice4M is optimized for byte slice of capacity [4194304, 8388608) but will accepts other sizes as well. PutBytesSlice4M, contrary to PutBytesSlicePtr4M, will perform a pointer-sized allocation for each call.
func PutBytesSlice512 ¶
PutBytesSlice512 recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice512 is optimized for byte slice of capacity [512, 1024) but will accepts other sizes as well. PutBytesSlice512, contrary to PutBytesSlicePtr512, will perform a pointer-sized allocation for each call.
func PutBytesSlice512K ¶
PutBytesSlice512K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice512K is optimized for byte slice of capacity [524288, 1048576) but will accepts other sizes as well. PutBytesSlice512K, contrary to PutBytesSlicePtr512K, will perform a pointer-sized allocation for each call.
func PutBytesSlice64K ¶
PutBytesSlice64K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice64K is optimized for byte slice of capacity [65536, 131072) but will accepts other sizes as well. PutBytesSlice64K, contrary to PutBytesSlicePtr64K, will perform a pointer-sized allocation for each call.
func PutBytesSlice8K ¶
PutBytesSlice8K recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice8K is optimized for byte slice of capacity [8192, 16384) but will accepts other sizes as well. PutBytesSlice8K, contrary to PutBytesSlicePtr8K, will perform a pointer-sized allocation for each call.
func PutBytesSlice8M ¶
PutBytesSlice8M recycles the passed byte slice. If the byte slice can not be recycled (e.g. because its capacity is too small or too big) false is returned and the bytes.Buffer is returned unmodified, otherwise the byte slice is recycled and true is returned. In the latter case, the caller should never use again the passed byte slice. PutBytesSlice8M is optimized for byte slice of capacity [8388608, 16777216) but will accepts other sizes as well. PutBytesSlice8M, contrary to PutBytesSlicePtr8M, will perform a pointer-sized allocation for each call.
func PutBytesSlicePtr ¶
func PutBytesSlicePtr128K ¶
PutBytesSlicePtr128K is like PutBytesSlice128K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr16K ¶
PutBytesSlicePtr16K is like PutBytesSlice16K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr16M ¶
PutBytesSlicePtr16M is like PutBytesSlice16M, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr1K ¶
PutBytesSlicePtr1K is like PutBytesSlice1K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr1M ¶
PutBytesSlicePtr1M is like PutBytesSlice1M, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr256 ¶
PutBytesSlicePtr256 is like PutBytesSlice256, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr256K ¶
PutBytesSlicePtr256K is like PutBytesSlice256K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr2K ¶
PutBytesSlicePtr2K is like PutBytesSlice2K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr2M ¶
PutBytesSlicePtr2M is like PutBytesSlice2M, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr32K ¶
PutBytesSlicePtr32K is like PutBytesSlice32K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr4K ¶
PutBytesSlicePtr4K is like PutBytesSlice4K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr4M ¶
PutBytesSlicePtr4M is like PutBytesSlice4M, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr512 ¶
PutBytesSlicePtr512 is like PutBytesSlice512, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr512K ¶
PutBytesSlicePtr512K is like PutBytesSlice512K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr64K ¶
PutBytesSlicePtr64K is like PutBytesSlice64K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr8K ¶
PutBytesSlicePtr8K is like PutBytesSlice8K, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
func PutBytesSlicePtr8M ¶
PutBytesSlicePtr8M is like PutBytesSlice8M, but it accepts a pointer to the byte slice and does not perform a pointer-sized allocation for each call.
Types ¶
type BufferPool128K ¶
type BufferPool128K struct {
httputil.BufferPool
}
BufferPool128K is a httputil.BufferPool that provides byte slices of 128K bytes.
func (BufferPool128K) Get ¶
func (_ BufferPool128K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool128K) Put ¶
func (_ BufferPool128K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool16K ¶
type BufferPool16K struct {
httputil.BufferPool
}
BufferPool16K is a httputil.BufferPool that provides byte slices of 16K bytes.
func (BufferPool16K) Get ¶
func (_ BufferPool16K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool16K) Put ¶
func (_ BufferPool16K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool16M ¶
type BufferPool16M struct {
httputil.BufferPool
}
BufferPool16M is a httputil.BufferPool that provides byte slices of 16M bytes.
func (BufferPool16M) Get ¶
func (_ BufferPool16M) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool16M) Put ¶
func (_ BufferPool16M) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool1K ¶
type BufferPool1K struct {
httputil.BufferPool
}
BufferPool1K is a httputil.BufferPool that provides byte slices of 1K bytes.
func (BufferPool1K) Put ¶
func (_ BufferPool1K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool1M ¶
type BufferPool1M struct {
httputil.BufferPool
}
BufferPool1M is a httputil.BufferPool that provides byte slices of 1M bytes.
func (BufferPool1M) Put ¶
func (_ BufferPool1M) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool256 ¶
type BufferPool256 struct {
httputil.BufferPool
}
BufferPool256 is a httputil.BufferPool that provides byte slices of 256 bytes.
func (BufferPool256) Get ¶
func (_ BufferPool256) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool256) Put ¶
func (_ BufferPool256) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool256K ¶
type BufferPool256K struct {
httputil.BufferPool
}
BufferPool256K is a httputil.BufferPool that provides byte slices of 256K bytes.
func (BufferPool256K) Get ¶
func (_ BufferPool256K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool256K) Put ¶
func (_ BufferPool256K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool2K ¶
type BufferPool2K struct {
httputil.BufferPool
}
BufferPool2K is a httputil.BufferPool that provides byte slices of 2K bytes.
func (BufferPool2K) Put ¶
func (_ BufferPool2K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool2M ¶
type BufferPool2M struct {
httputil.BufferPool
}
BufferPool2M is a httputil.BufferPool that provides byte slices of 2M bytes.
func (BufferPool2M) Put ¶
func (_ BufferPool2M) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool32K ¶
type BufferPool32K struct {
httputil.BufferPool
}
BufferPool32K is a httputil.BufferPool that provides byte slices of 32K bytes.
func (BufferPool32K) Get ¶
func (_ BufferPool32K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool32K) Put ¶
func (_ BufferPool32K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool4K ¶
type BufferPool4K struct {
httputil.BufferPool
}
BufferPool4K is a httputil.BufferPool that provides byte slices of 4K bytes.
func (BufferPool4K) Put ¶
func (_ BufferPool4K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool4M ¶
type BufferPool4M struct {
httputil.BufferPool
}
BufferPool4M is a httputil.BufferPool that provides byte slices of 4M bytes.
func (BufferPool4M) Put ¶
func (_ BufferPool4M) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool512 ¶
type BufferPool512 struct {
httputil.BufferPool
}
BufferPool512 is a httputil.BufferPool that provides byte slices of 512 bytes.
func (BufferPool512) Get ¶
func (_ BufferPool512) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool512) Put ¶
func (_ BufferPool512) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool512K ¶
type BufferPool512K struct {
httputil.BufferPool
}
BufferPool512K is a httputil.BufferPool that provides byte slices of 512K bytes.
func (BufferPool512K) Get ¶
func (_ BufferPool512K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool512K) Put ¶
func (_ BufferPool512K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool64K ¶
type BufferPool64K struct {
httputil.BufferPool
}
BufferPool64K is a httputil.BufferPool that provides byte slices of 64K bytes.
func (BufferPool64K) Get ¶
func (_ BufferPool64K) Get() []byte
Get implements httputil.BufferPool.Get
func (BufferPool64K) Put ¶
func (_ BufferPool64K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool8K ¶
type BufferPool8K struct {
httputil.BufferPool
}
BufferPool8K is a httputil.BufferPool that provides byte slices of 8K bytes.
func (BufferPool8K) Put ¶
func (_ BufferPool8K) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPool8M ¶
type BufferPool8M struct {
httputil.BufferPool
}
BufferPool8M is a httputil.BufferPool that provides byte slices of 8M bytes.
func (BufferPool8M) Put ¶
func (_ BufferPool8M) Put(b []byte)
Put implements httputil.BufferPool.Put
type BufferPtrPool128K ¶
type BufferPtrPool128K struct{}
BufferPtrPool128K is like BufferPool128K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool128K) Get ¶
func (_ BufferPtrPool128K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr128K for details.
func (BufferPtrPool128K) Put ¶
func (_ BufferPtrPool128K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr128K for details.
type BufferPtrPool16K ¶
type BufferPtrPool16K struct{}
BufferPtrPool16K is like BufferPool16K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool16K) Get ¶
func (_ BufferPtrPool16K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr16K for details.
func (BufferPtrPool16K) Put ¶
func (_ BufferPtrPool16K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr16K for details.
type BufferPtrPool16M ¶
type BufferPtrPool16M struct{}
BufferPtrPool16M is like BufferPool16M, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool16M) Get ¶
func (_ BufferPtrPool16M) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr16M for details.
func (BufferPtrPool16M) Put ¶
func (_ BufferPtrPool16M) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr16M for details.
type BufferPtrPool1K ¶
type BufferPtrPool1K struct{}
BufferPtrPool1K is like BufferPool1K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool1K) Get ¶
func (_ BufferPtrPool1K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr1K for details.
func (BufferPtrPool1K) Put ¶
func (_ BufferPtrPool1K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr1K for details.
type BufferPtrPool1M ¶
type BufferPtrPool1M struct{}
BufferPtrPool1M is like BufferPool1M, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool1M) Get ¶
func (_ BufferPtrPool1M) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr1M for details.
func (BufferPtrPool1M) Put ¶
func (_ BufferPtrPool1M) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr1M for details.
type BufferPtrPool256 ¶
type BufferPtrPool256 struct{}
BufferPtrPool256 is like BufferPool256, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool256) Get ¶
func (_ BufferPtrPool256) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr256 for details.
func (BufferPtrPool256) Put ¶
func (_ BufferPtrPool256) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr256 for details.
type BufferPtrPool256K ¶
type BufferPtrPool256K struct{}
BufferPtrPool256K is like BufferPool256K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool256K) Get ¶
func (_ BufferPtrPool256K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr256K for details.
func (BufferPtrPool256K) Put ¶
func (_ BufferPtrPool256K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr256K for details.
type BufferPtrPool2K ¶
type BufferPtrPool2K struct{}
BufferPtrPool2K is like BufferPool2K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool2K) Get ¶
func (_ BufferPtrPool2K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr2K for details.
func (BufferPtrPool2K) Put ¶
func (_ BufferPtrPool2K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr2K for details.
type BufferPtrPool2M ¶
type BufferPtrPool2M struct{}
BufferPtrPool2M is like BufferPool2M, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool2M) Get ¶
func (_ BufferPtrPool2M) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr2M for details.
func (BufferPtrPool2M) Put ¶
func (_ BufferPtrPool2M) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr2M for details.
type BufferPtrPool32K ¶
type BufferPtrPool32K struct{}
BufferPtrPool32K is like BufferPool32K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool32K) Get ¶
func (_ BufferPtrPool32K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr32K for details.
func (BufferPtrPool32K) Put ¶
func (_ BufferPtrPool32K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr32K for details.
type BufferPtrPool4K ¶
type BufferPtrPool4K struct{}
BufferPtrPool4K is like BufferPool4K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool4K) Get ¶
func (_ BufferPtrPool4K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr4K for details.
func (BufferPtrPool4K) Put ¶
func (_ BufferPtrPool4K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr4K for details.
type BufferPtrPool4M ¶
type BufferPtrPool4M struct{}
BufferPtrPool4M is like BufferPool4M, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool4M) Get ¶
func (_ BufferPtrPool4M) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr4M for details.
func (BufferPtrPool4M) Put ¶
func (_ BufferPtrPool4M) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr4M for details.
type BufferPtrPool512 ¶
type BufferPtrPool512 struct{}
BufferPtrPool512 is like BufferPool512, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool512) Get ¶
func (_ BufferPtrPool512) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr512 for details.
func (BufferPtrPool512) Put ¶
func (_ BufferPtrPool512) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr512 for details.
type BufferPtrPool512K ¶
type BufferPtrPool512K struct{}
BufferPtrPool512K is like BufferPool512K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool512K) Get ¶
func (_ BufferPtrPool512K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr512K for details.
func (BufferPtrPool512K) Put ¶
func (_ BufferPtrPool512K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr512K for details.
type BufferPtrPool64K ¶
type BufferPtrPool64K struct{}
BufferPtrPool64K is like BufferPool64K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool64K) Get ¶
func (_ BufferPtrPool64K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr64K for details.
func (BufferPtrPool64K) Put ¶
func (_ BufferPtrPool64K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr64K for details.
type BufferPtrPool8K ¶
type BufferPtrPool8K struct{}
BufferPtrPool8K is like BufferPool8K, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool8K) Get ¶
func (_ BufferPtrPool8K) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr8K for details.
func (BufferPtrPool8K) Put ¶
func (_ BufferPtrPool8K) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr8K for details.
type BufferPtrPool8M ¶
type BufferPtrPool8M struct{}
BufferPtrPool8M is like BufferPool8M, but using pointer to byte slices instead (to avoid allocations during Put). For this reason it is not compatible with httputil.BufferPool.
func (BufferPtrPool8M) Get ¶
func (_ BufferPtrPool8M) Get() *[]byte
Get gets a byte slice from the pool. See GetBytesSlicePtr8M for details.
func (BufferPtrPool8M) Put ¶
func (_ BufferPtrPool8M) Put(b *[]byte)
Put inserts a byte slice in the pool. See PutBytesSlicePtr8M for details.