java.lang.Object | |
↳ | com.facebook.imagepipeline.memory.FlexByteArrayPool |
A special byte-array pool designed to minimize allocations.
The length of each bucket's free list is capped at the number of threads using the pool.
The free list of each bucket uses OOMSoftReferences.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FlexByteArrayPool(MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams params) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CloseableReference<byte[]> | get(int size) | ||||||||||
int | getMinBufferSize() | ||||||||||
Map<String, Integer> | getStats() | ||||||||||
void | release(byte[] value) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|