-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMCodeIndex.h
More file actions
39 lines (33 loc) · 773 Bytes
/
CMCodeIndex.h
File metadata and controls
39 lines (33 loc) · 773 Bytes
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
/*
* CMCodeIndex.h Colin MacCreery
*
* Header for the Code Index. Originally used @properties
* but was unnessesary as TempUserApp.m does not need
* to access any of that information.
*
************************************************************/
#import <Foundation/Foundation.h>
typedef struct {
short m;
short r;
short e;
short f;
short k;
} header;
@interface CMCodeIndex : NSObject {
header* h;
char _type;
short _next;
NSMutableArray* _codes;
NSMutableArray* _pointers;
int headSize;
int recSize;
NSFileHandle* binHandle;
int nodesRead;
int comparisons;
}
-(id)initWithFile:(NSString*)f;
-(NSDictionary*)query:(NSString*)c;
-(NSString*)list;
-(void)close;
@end