Back to FabImage Library website

You are here: Start » Function Reference » System » Configuration » ChargeImageMemoryPools

ChargeImageMemoryPools


Header: FIL.h
Namespace: fil
Module: FoundationLite

Preallocates memory buffers for images.

Applications: This may improve performance when many images are created and destroyed in an application.

Syntax

C++
C#
 
void fil::ChargeImageMemoryPools
(
	const ftl::Array<int>& inRequestedPoolSizes,
	bool inTouch
)

Parameters

Name Type Default Description
Input value
inRequestedPoolSizes const Array<int>& Copy a value from InspectImageMemoryPools.outPoolSizes
Input value
inTouch bool Forces getting the new memory pools to the cache memory

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

Errors

List of possible exceptions:

Error type Description
DomainError Incorrect size of 'inRequestedPoolSizes' array.