Back to Fresco

FlexByteArrayPool

docs/javadoc/reference/com/facebook/imagepipeline/memory/FlexByteArrayPool.html

3.6.015.8 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Exceptions

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

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
Public Methods
CloseableReference<byte[]>
int
Map<String, Integer>
void

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

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)

+Generated by Doclava. +