@@ -133,10 +133,15 @@ - (uint32_t)CRC32 { return _CRC32; } + +- (OFDataArray*)extraField +{ + return [[_extraField copy] autorelease]; +} - (OFString*)description { void *pool = objc_autoreleasePoolPush(); OFDate *modificationDate = [self modificationDate]; @@ -147,14 +152,15 @@ @"\tFile comment = %@\n" @"\tCompressed size = %jd\n" @"\tUncompressed size = %jd\n" @"\tModification date = %@\n" @"\tCRC32 = %" @PRIu32 @"\n" + @"\tExtra field = %@\n" @"}", [self class], self, _fileName, _fileComment, (intmax_t)_compressedSize, (intmax_t)_uncompressedSize, - modificationDate, _CRC32]; + modificationDate, _CRC32, _extraField]; objc_autoreleasePoolPop(pool); return [ret autorelease]; } @@ -187,11 +193,11 @@ - (uint16_t)OF_lastModifiedFileDate { return _lastModifiedFileDate; } -- (OFDataArray*)OF_extraField +- (OFDataArray*)OF_extraFieldNoCopy { OF_GETTER(_extraField, true) } - (uint16_t)OF_startDiskNumber