Instance Method

freeMemory:

Frees the specified number of bytes.

Required.

Declaration

- (size_t)freeMemory:(size_t)requestedBytes;

Parameters

requestedBytes

The number of bytes the host app wants your plug-in to free.

Return Value

The number of methods that the plug-in is actually able to free.

Discussion

You must implement this method.

The host application invokes this method when memory becomes low and there is a need to free temporary or cache memory. When called, your plug-in should free at least requestedBytes, if possible.