@@ -17,11 +17,11 @@ #include "config.h" #include -#import "OFData+MessagePackValue.h" +#import "OFData+MessagePackParsing.h" #import "OFArray.h" #import "OFDate.h" #import "OFDictionary.h" #import "OFMessagePackExtension.h" #import "OFNull.h" @@ -31,11 +31,11 @@ #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFOutOfRangeException.h" #import "OFTruncatedDataException.h" -int _OFData_MessagePackValue_reference; +int _OFData_MessagePackParsing_reference; static size_t parseObject(const unsigned char *buffer, size_t length, id *object, size_t depthLimit); static uint16_t @@ -540,17 +540,17 @@ default: @throw [OFInvalidFormatException exception]; } } -@implementation OFData (MessagePackValue) -- (id)messagePackValue +@implementation OFData (MessagePackParsing) +- (id)objectByParsingMessagePack { - return [self messagePackValueWithDepthLimit: 32]; + return [self objectByParsingMessagePackWithDepthLimit: 32]; } -- (id)messagePackValueWithDepthLimit: (size_t)depthLimit +- (id)objectByParsingMessagePackWithDepthLimit: (size_t)depthLimit { void *pool = objc_autoreleasePoolPush(); size_t count = self.count; id object;