forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFSPointer.h
30 lines (23 loc) · 805 Bytes
/
FSPointer.h
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
/* FSPointer.h Copyright (c) 2004-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
#import <stddef.h>
@class FSGenericPointer;
@class FSObjectPointer;
@class FSBoolean;
@interface FSPointer : NSObject
{
NSUInteger retainCount;
__strong void *cPointer;
}
+ (FSGenericPointer *) allocateCollectable:(NSUInteger)size;
+ (FSGenericPointer *) allocateCollectable:(NSUInteger)size options:(NSUInteger)options;
+ (FSGenericPointer *) malloc:(size_t)size;
+ (FSObjectPointer *) objectPointer;
+ (FSObjectPointer *) objectPointer:(size_t)count;
- (NSNumber *) address;
- (void *) cPointer;
- (BOOL) isEqual:(id)anObject;
- (FSBoolean *)operator_equal:(id)operand;
- (FSBoolean *)operator_tilde_equal:(id)operand;
@end