Click or drag to resize

PixelMemoryTrackerMemoryAllocated Method (IntPtr, Int64)

This method is used to report an allocation of image memory.

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void MemoryAllocated(
	IntPtr location,
	long size
)

Parameters

location
Type: SystemIntPtr
A pointer to the first byte of image memory.
size
Type: SystemInt64
The number of bytes used by this block of memory.
Remarks

MemoryAllocated will throw is the location has already been reported as allocated or if the location is null or the size is less than or equal to zero.

All memory reporting routines are thread-safe.

See Also