get_global_memory_size


ulong get_global_memory_size(handle memory)

This function returns the size of the global memory block.

Parameters

handle memory

The handle of the global memory object whose size is being determined.

Return

ulong

The size (in bytes) of the global memory block or zero if an error occurred.

Notes

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

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