115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
}
@end
@implementation OFMutableData
+ (void)initialize
{
if (self == [OFMutableData class])
placeholder.isa = [OFMutableDataPlaceholder class];
}
+ (instancetype)alloc
{
if (self == [OFMutableData class])
return (id)&placeholder;
|
>
|
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
}
@end
@implementation OFMutableData
+ (void)initialize
{
if (self == [OFMutableData class])
object_setClass((id)&placeholder,
[OFMutableDataPlaceholder class]);
}
+ (instancetype)alloc
{
if (self == [OFMutableData class])
return (id)&placeholder;
|