get_local_memory_size


ulong get_local_memory_size(handle memory)

This function returns the size of the local memory block.

Parameters

handle memory

The handle of the memory block whose size is being queried.

Return

ulong

The size (in bytes) of the local memory block.

Notes

The actual size of a memory block may be greater than its requested allocation size.

The function get_local_memory_flags may be used to determine whether a memory block has been discarded.