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.
Click to show internal directories.
Click to hide internal directories.