internal

package
v1.19.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool = sync.Pool{
	New: func() any {
		return bytes.NewBuffer(make([]byte, 0, 256))
	},
}

BufferPool is a sync.Pool for buffers used to write compressed data to.

View Source
var CompressPool = sync.Pool{
	New: func() any {
		w, _ := flate.NewWriter(io.Discard, 6)
		return w
	},
}

CompressPool is a sync.Pool for writeCloseResetter flate readers. These are pooled for connections.

View Source
var DecompressPool = sync.Pool{
	New: func() any {
		return flate.NewReader(bytes.NewReader(nil))
	},
}

DecompressPool is a sync.Pool for io.ReadCloser flate readers. These are pooled for connections.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL