blob: 6c9a9acefb61f8113899d473c69ed5d05ab981af (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ Parsed from Foundation.framework NSZone.h }
{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.4 - Thu Oct 1 18:54:06 ICT 2009 }
{$ifdef TYPES}
{$ifndef NSZONE_PAS_T}
{$define NSZONE_PAS_T}
{ Types }
type
_NSZone = Pointer;
NSZone = _NSZone;
{ Constants }
const
NSScannedOption = 1 shl 0;
NSCollectorDisabledOption = 1 shl 1;
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSZONE_PAS_R}
{$define NSZONE_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSZONE_PAS_F}
{$define NSZONE_PAS_F}
{ Functions }
function NSDefaultMallocZone: NSZone; cdecl; external name 'NSDefaultMallocZone';
function NSCreateZone(startSize: NSUInteger; granularity: NSUInteger; canFree: Boolean): NSZone; cdecl; external name 'NSCreateZone';
procedure NSRecycleZone(zonePointer: NSZone); cdecl; external name 'NSRecycleZone';
procedure NSSetZoneName(zonePointer: NSZone; namePointer: NSString); cdecl; external name 'NSSetZoneName';
function NSZoneName(zonePointer: NSZone): NSString; cdecl; external name 'NSZoneName';
function NSZoneFromPointer(ptrPointer: Pointer): NSZone; cdecl; external name 'NSZoneFromPointer';
procedure NSZoneMalloc(zonePointer: NSZone; size: NSUInteger); cdecl; external name 'NSZoneMalloc';
procedure NSZoneCalloc(zonePointer: NSZone; numElems: NSUInteger; byteSize: NSUInteger); cdecl; external name 'NSZoneCalloc';
procedure NSZoneRealloc(zonePointer: NSZone; ptrPointer: Pointer; size: NSUInteger); cdecl; external name 'NSZoneRealloc';
procedure NSZoneFree(zonePointer: NSZone; ptrPointer: Pointer); cdecl; external name 'NSZoneFree';
function NSAllocateCollectable(size: NSUInteger; options: NSUInteger): Pointer; cdecl; external name 'NSAllocateCollectable';
function NSReallocateCollectable(ptrPointer: Pointer; size: NSUInteger; options: NSUInteger): Pointer; cdecl; external name 'NSReallocateCollectable';
function NSPageSize: NSUInteger; cdecl; external name 'NSPageSize';
function NSLogPageSize: NSUInteger; cdecl; external name 'NSLogPageSize';
function NSRoundUpToMultipleOfPageSize(bytes: NSUInteger): NSUInteger; cdecl; external name 'NSRoundUpToMultipleOfPageSize';
function NSRoundDownToMultipleOfPageSize(bytes: NSUInteger): NSUInteger; cdecl; external name 'NSRoundDownToMultipleOfPageSize';
function NSAllocateMemoryPages(bytes: NSUInteger): pointer; cdecl; external name 'NSAllocateMemoryPages';
procedure NSDeallocateMemoryPages(ptrPointer: Pointer; bytes: NSUInteger); cdecl; external name 'NSDeallocateMemoryPages';
procedure NSCopyMemoryPages(sourcePointer: Pointer; destPointer: Pointer; bytes: NSUInteger); cdecl; external name 'NSCopyMemoryPages';
function NSRealMemoryAvailable: NSUInteger; cdecl; external name 'NSRealMemoryAvailable';
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSZONE_PAS_S}
{$define NSZONE_PAS_S}
{$endif}
{$endif}
|