Documentation
¶
Index ¶
- Constants
- Variables
- func AcquireStringsBuilder() *strings.Builder
- func AcquireTimer(timeout time.Duration) *time.Timer
- func AcquireWaitGroup() *sync.WaitGroup
- func NewByteSlice(min, max int) *byteSlicePool
- func ReleaseStringsBuilder(sb *strings.Builder)
- func ReleaseTimer(t *time.Timer)
- func ReleaseWaitGroup(wg *sync.WaitGroup)
- func ResetTimer(t *time.Timer, period time.Duration)
Constants ¶
View Source
const Imported = true
Variables ¶
View Source
var Buffer = buf.NewBytesPool(4, 64<<10)
View Source
var Bytes = NewByteSlice(32, 64<<10)
Functions ¶
func AcquireStringsBuilder ¶ added in v0.6.27
func AcquireWaitGroup ¶
func NewByteSlice ¶ added in v0.1.4
func NewByteSlice(min, max int) *byteSlicePool
NewByteSlice creates new byteSlicePool that reuses objects which size is in logarithmic range [min, max].
Note that it is a shortcut for Custom() constructor with Options provided by WithLogSizeMapping() and WithLogSizeRange(min, max) calls.
func ReleaseStringsBuilder ¶ added in v0.6.27
func ReleaseTimer ¶
func ReleaseWaitGroup ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.