public class

NativeMemoryChunkPool

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

Class Overview

Manages a pool of native memory chunks (NativeMemoryChunk)

Summary

Public Constructors
NativeMemoryChunkPool(MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker nativeMemoryChunkPoolStatsTracker)
Protected Methods
NativeMemoryChunk 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 NativeMemoryChunkPool (MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker nativeMemoryChunkPoolStatsTracker)

Protected Methods

protected NativeMemoryChunk alloc (int bucketedSize)

Allocates a new 'value' with the given size

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