ulong get_local_memory_size(handle memory)
This function returns the size of the local memory block.
The handle of the memory block whose size is being queried.
The size (in bytes) of the local memory block.
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.