@@ -130,23 +130,23 @@ } static OFDate * createDate(OFData *data) { - switch ([data count]) { + switch (data.count) { case 4: { uint32_t timestamp; - memcpy(×tamp, [data items], 4); + memcpy(×tamp, data.items, 4); timestamp = OF_BSWAP32_IF_LE(timestamp); return [OFDate dateWithTimeIntervalSince1970: timestamp]; } case 8: { uint64_t combined; - memcpy(&combined, [data items], 8); + memcpy(&combined, data.items, 8); combined = OF_BSWAP64_IF_LE(combined); return [OFDate dateWithTimeIntervalSince1970: (double)(combined & 0x3FFFFFFFF) + (double)(combined >> 34) / 1000000000]; @@ -153,12 +153,12 @@ } case 12: { uint32_t nanoseconds; int64_t seconds; - memcpy(&nanoseconds, [data items], 4); - memcpy(&seconds, (char *)[data items] + 4, 8); + memcpy(&nanoseconds, data.items, 4); + memcpy(&seconds, (char *)data.items + 4, 8); nanoseconds = OF_BSWAP32_IF_LE(nanoseconds); seconds = OF_BSWAP64_IF_LE(seconds); return [OFDate dateWithTimeIntervalSince1970: @@ -556,21 +556,21 @@ } - (id)messagePackValueWithDepthLimit: (size_t)depthLimit { void *pool = objc_autoreleasePoolPush(); - size_t count = [self count]; + size_t count = self.count; id object; - if ([self itemSize] != 1) + if (self.itemSize != 1) @throw [OFInvalidArgumentException exception]; - if (parseObject([self items], count, &object, depthLimit) != count) + if (parseObject(self.items, count, &object, depthLimit) != count) @throw [OFInvalidFormatException exception]; [object retain]; objc_autoreleasePoolPop(pool); return [object autorelease]; } @end