Glide
Glide
/
com.bumptech.glide.load.engine.bitmap_recycle
/
ArrayPool
Array
Pool
interface
ArrayPool
Content copied to clipboard
Interface for an array pool that pools arrays of different types.
Functions
Properties
Inheritors
Functions
clear
Memory
Link copied to clipboard
abstract
fun
clearMemory
(
)
Content copied to clipboard
Clears all arrays from the pool.
get
Link copied to clipboard
abstract
fun
<
T
>
get
(
size
:
Int
,
arrayClass
:
Class
<
T
>
)
:
T
Content copied to clipboard
Returns a non-null array of the given type with a length
>=
to the given size.
get
Exact
Link copied to clipboard
abstract
fun
<
T
>
getExact
(
size
:
Int
,
arrayClass
:
Class
<
T
>
)
:
T
Content copied to clipboard
Returns a non-null array of the given type with a length exactly equal to the given size.
put
Link copied to clipboard
abstract
fun
<
T
>
put
(
array
:
T
)
Content copied to clipboard
@
Deprecated
abstract
fun
<
T
>
put
(
array
:
T
,
arrayClass
:
Class
<
T
>
)
Content copied to clipboard
Optionally adds the given array of the given type to the pool.
trim
Memory
Link copied to clipboard
abstract
fun
trimMemory
(
level
:
Int
)
Content copied to clipboard
Trims the size to the appropriate level.
Properties
STANDARD_BUFFER_SIZE_BYTES
Link copied to clipboard
val
STANDARD_BUFFER_SIZE_BYTES
:
Int
Content copied to clipboard
A standard size to use to increase hit rates when the required size isn't defined.
Inheritors
LruArrayPool
Link copied to clipboard