public class

BufferMemoryChunkPool

extends MemoryChunkPool
java.lang.Object
   ↳ com.facebook.imagepipeline.memory.BasePool<V>
     ↳ com.facebook.imagepipeline.memory.MemoryChunkPool
       ↳ com.facebook.imagepipeline.memory.BufferMemoryChunkPool

Class Overview

Manages a pool of buffer memory chunks (BufferMemoryChunk)

Summary

Public Constructors
BufferMemoryChunkPool(MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker bufferMemoryChunkPoolStatsTracker)
Protected Methods
BufferMemoryChunk alloc(int bucketedSize)
Allocates a new 'value' with the given size
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.memory.MemoryChunkPool
From class com.facebook.imagepipeline.memory.BasePool
From class java.lang.Object
From interface com.facebook.common.memory.MemoryTrimmable
From interface com.facebook.common.memory.Pool
From interface com.facebook.common.references.ResourceReleaser

Public Constructors

public BufferMemoryChunkPool (MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker bufferMemoryChunkPoolStatsTracker)

Protected Methods

protected BufferMemoryChunk alloc (int bucketedSize)

Allocates a new 'value' with the given size

Parameters
bucketedSize the logical size to allocate
Returns
  • a new value