package

com.facebook.imagepipeline.memory

Pool implementations for the image pipeline. Here we have the implementations which use the native memory code about MemChunk.

Interfaces

BitmapPool  
MemoryChunk  
PoolStatsTracker Listener that logs pool statistics. 

Classes

BasePool<V> A base pool class that manages a pool of values (of type V). 
BitmapCounter Counts bitmaps - keeps track of both, count and total size in bytes. 
BitmapCounterConfig  
BitmapCounterConfig.Builder  
BitmapCounterProvider  
BitmapPoolBackend  
BucketMap<T> Map-like datastructure that allows to have more than one value per int key. 
BucketsBitmapPool Manages a pool of bitmaps. 
BufferMemoryChunk Wrapper around chunk using a direct ByteBuffer in native memory. 
BufferMemoryChunkPool Manages a pool of buffer memory chunks (BufferMemoryChunk)  
DefaultBitmapPoolParams Provides pool parameters for BitmapPool  
DefaultByteArrayPoolParams Provides pool parameters (PoolParams) for common ByteArrayPool  
DefaultFlexByteArrayPoolParams Provides pool parameters (PoolParams) for SharedByteArray  
DefaultNativeMemoryChunkPoolParams Provides pool parameters (PoolParams) for NativeMemoryChunkPool  
DummyBitmapPool  
FlexByteArrayPool A special byte-array pool designed to minimize allocations. 
GenericByteArrayPool A pool of byte arrays. 
LruBitmapPool  
LruBucketsPoolBackend<T> Relies on BucketMap to implement pooling Items from the bucket with LRU key will be removed first 
MemoryChunkPool Manages a pool of memory chunks (MemoryChunk)  
MemoryChunkUtil  
MemoryPooledByteBuffer An implementation of PooledByteBuffer that uses (MemoryChunk) to store data  
MemoryPooledByteBufferFactory A factory to provide instances of MemoryPooledByteBuffer and MemoryPooledByteBufferOutputStream  
MemoryPooledByteBufferOutputStream An implementation of PooledByteBufferOutputStream that produces a MemoryPooledByteBuffer  
NativeMemoryChunk Wrapper around chunk of native memory. 
NativeMemoryChunkPool Manages a pool of native memory chunks (NativeMemoryChunk)  
NoOpPoolStatsTracker Empty implementation of PoolStatsTracker that does not perform any tracking. 
PoolConfig Configuration class for pools. 
PoolConfig.Builder  
PoolFactory Factory class for pools. 
PoolParams Config parameters for pools (BasePool
SharedByteArray Maintains a shareable reference to a byte array. 

Exceptions

BasePool.InvalidSizeException An exception to indicate that the requested size was invalid  
BasePool.InvalidValueException An exception to indicate if the 'value' is invalid. 
BasePool.PoolSizeViolationException Indicates that the pool size will exceed the hard cap if we allocated a value of size 'allocSize'  
BasePool.SizeTooLargeException A specific case of InvalidSizeException used to indicate that the requested size was too large  
MemoryPooledByteBufferOutputStream.InvalidStreamException An exception indicating that this stream is no longer valid