Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushReleaseWriter ¶
func ReleaseWriter ¶ added in v0.62.0
func ReleaseWriter(w *Writer)
Types ¶
type Buffer ¶
type Buffer struct {
B []byte
}
func AcquireLen ¶
AcquireLen gets a byte buffer with given length from the global pool.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool consists of N sync.Pool's, each pool is a set of temporary Buffer with at least 2^n+8 capacity where the n is the pool index.
Click to show internal directories.
Click to hide internal directories.