136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
if (bitStringValueCount + 1 > UINT8_MAX ||
bitStringValueCount != roundedUpLength / 8)
@throw [OFInvalidFormatException exception];
data = [OFMutableData
dataWithCapacity: sizeof(header) + bitStringValueCount];
[data addItems: header
count: sizeof(header)];
[data addItems: [_bitStringValue items]
count: bitStringValueCount];
[data makeImmutable];
return data;
}
- (bool)isEqual: (id)object
|
|
<
|
<
|
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
if (bitStringValueCount + 1 > UINT8_MAX ||
bitStringValueCount != roundedUpLength / 8)
@throw [OFInvalidFormatException exception];
data = [OFMutableData
dataWithCapacity: sizeof(header) + bitStringValueCount];
[data addItems: header count: sizeof(header)];
[data addItems: [_bitStringValue items] count: bitStringValueCount];
[data makeImmutable];
return data;
}
- (bool)isEqual: (id)object
|