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
|
+ dataArrayWithItemSize: (size_t)is
{
return [[[self alloc] initWithItemSize: is] autorelease];
}
- init
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
}
- initWithItemSize: (size_t)is
{
Class c;
self = [super init];
if (is == 0) {
c = isa;
[super dealloc];
@throw [OFInvalidArgumentException newWithClass: c
selector: _cmd];
}
data = NULL;
itemSize = is;
return self;
}
- (size_t)count
{
return count;
|
>
>
|
<
<
>
|
<
<
|
|
|
<
|
|
>
>
>
>
|
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
|
+ dataArrayWithItemSize: (size_t)is
{
return [[[self alloc] initWithItemSize: is] autorelease];
}
- init
{
Class c = isa;
[self release];
@throw [OFNotImplementedException newWithClass: c
selector: _cmd];
}
- initWithItemSize: (size_t)is
{
self = [super init];
@try {
if (is == 0)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
data = NULL;
itemSize = is;
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (size_t)count
{
return count;
|