forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheapSpace.xml
More file actions
45 lines (45 loc) · 1.77 KB
/
Copy pathheapSpace.xml
File metadata and controls
45 lines (45 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<doc>
<legacy_id>1303</legacy_id>
<name>heapSpace</name>
<type>function</type>
<syntax>
<example>the heapSpace</example>
<example>heapSpace()</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>The System Environment</category>
</classification>
<references>
<function tag="stackSpace">stackSpace Function</function>
<function tag="hasMemory">hasMemory Function</function>
<property tag="alwaysBuffer">alwaysBuffer Property</property>
<property tag="destroyStack">destroyStack Property</property>
<property tag="size">size Property</property>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> the number of free <glossary tag="byte">bytes</glossary> in the application heap on <glossary tag="Mac OS">Mac OS systems</glossary>.</summary>
<examples>
<example>the heapSpace</example>
<example>if the heapSpace < 1024^2 then suggestLowMemory</example>
</examples>
<description>
<p>Use the <b>heapSpace</b> <control_st tag="function">function</control_st> to determine how much free memory remains.</p><p/><p><b>Value:</b></p><p>The <b>heapSpace</b> function <glossary tag="return">returns</glossary> a positive integer.</p><p/><p><b>Comments:</b></p><p>This function exists to aid compatibility with imported HyperCard stacks. It may not return the exact amount of free memory. It also does not take available temporary memory into account.</p><p/><p>On Unix and Windows systems, this function does not return a meaningful value.</p>
</description>
</doc>