@@ -21,10 +21,12 @@ #import "OFString.h" #import "OFInvalidArgumentException.h" @implementation OFMessagePackExtension +@synthesize type = _type, data = _data; + + (instancetype)extensionWithType: (int8_t)type data: (OFDataArray*)data { return [[[self alloc] initWithType: type data: data] autorelease]; @@ -59,20 +61,10 @@ [_data release]; [super dealloc]; } -- (int8_t)type -{ - return _type; -} - -- (OFDataArray*)data -{ - OF_GETTER(_data, true) -} - - (OFDataArray*)messagePackRepresentation { OFDataArray *ret; uint8_t prefix; size_t count = [_data count];