20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#import "OFExceptions.h"
#import "OFMacros.h"
static size_t lastpagebyte = 0;
extern int getpagesize(void);
@implementation OFArray
+ newWithItemSize: (size_t)is
{
return [[self alloc] initWithItemSize: is];
}
- initWithItemSize: (size_t)is
{
if ((self = [super init])) {
data = NULL;
itemsize = is;
|
|
|
>
>
>
>
>
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#import "OFExceptions.h"
#import "OFMacros.h"
static size_t lastpagebyte = 0;
extern int getpagesize(void);
@implementation OFArray
+ arrayWithItemSize: (size_t)is
{
return [[[self alloc] initWithItemSize: is] autorelease];
}
+ bigArrayWithItemSize: (size_t)is
{
return [[[OFBigArray alloc] initWithItemSize: is] autorelease];
}
- initWithItemSize: (size_t)is
{
if ((self = [super init])) {
data = NULL;
itemsize = is;
|