Differences From Artifact [91a0ea19b6]:
- File
src/OFDataArray.m
— part of check-in
[67bb344ba6]
at
2009-06-30 12:07:21
on branch trunk
— A few renames in OFObject, see details.
* +[conformsTo:] to +[conformsToProtocol:].
* -[isKindOf:] to -[isKindOfClass:].
* -[respondsTo:] to -[respondsToSelector:].
* -[conformsTo:] to -[conformsToProtocol:].
* -[methodFor:] to -[methodForSelector:]. (user: js, size: 4972) [annotate] [blame] [check-ins using]
To Artifact [3d750bfc13]:
- File src/OFDataArray.m — part of check-in [4eae61a78f] at 2009-07-19 14:05:30 on branch trunk — Rename andFoo: to foo: in all methods. (user: js, size: 4972) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
38 39 40 41 42 43 44 | self = [super init]; if (is == 0) { c = isa; [super dealloc]; @throw [OFInvalidArgumentException newWithClass: c | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | self = [super init]; if (is == 0) { c = isa; [super dealloc]; @throw [OFInvalidArgumentException newWithClass: c selector: _cmd]; } data = NULL; itemsize = is; return self; } |
︙ | ︙ | |||
146 147 148 149 150 151 152 | - (int)compare: (id)obj { int ret; if (![obj isKindOfClass: [OFDataArray class]]) @throw [OFInvalidArgumentException newWithClass: isa | | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | - (int)compare: (id)obj { int ret; if (![obj isKindOfClass: [OFDataArray class]]) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; if ([obj itemsize] != itemsize) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; if ([obj count] == count) return memcmp(data, [obj data], count * itemsize); if (count > [obj count]) { if ((ret = memcmp(data, [obj data], [obj count] * itemsize))) return ret; |
︙ | ︙ |