IntBlockPool
A pool for int blocks similar to ByteBlockPool
Types
Functions
Link copied to clipboard
Advances the pool to its next buffer. This method should be called once after the constructor to initialize the pool. In contrast to the constructor a IntBlockPool.reset call will advance the pool to its first buffer immediately.
Link copied to clipboard
Expert: Resets the pool to its initial state, while optionally reusing the first buffer. Buffers that are not reused are reclaimed by . Buffers can be filled with zeros before recycling them. This is useful if a slice pool works on top of this int pool and relies on the buffers being filled with zeros to find the non-zero end of slices.