blob: 598a371cc4be18f9dd9596d91321100b66beae15 (
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
|
#ifndef DATA_H
# define DATA_H
#undef __OBJC2__ /* Turn off OBJC2 on Darwin. */
#include "String.h"
#include <Object.h>
#include <sys/types.h>
#define MALLOC_GRANULARITY 10 /* Malloc for every 10 entries. */
/*
* Generic Entry and Data objects.
*/
@interface DataObject: Object
-(char *)createCStr;
-(String *)createStr;
-setFromBuffer: (const char *)buffer withLength: (int)len;
@end
@interface DictEntry: Object
{
String *key;
DataObject *data;
DictEntry *super;
}
-init;
-setKey: (String *)keyName;
-setData: (DataObject *)dataPtr;
-getKey;
-getData;
@end
#endif
|