public class

FlexByteArrayPool

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.memory.FlexByteArrayPool

Class Overview

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.

Summary

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

Public Constructors

public FlexByteArrayPool (MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams params)

Public Methods

public CloseableReference<byte[]> get (int size)

public int getMinBufferSize ()

public Map<String, Integer> getStats ()

public void release (byte[] value)