Differences From Artifact [9d5bd4c896]:
- File
src/OFTarArchiveEntry.m
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 4129) [annotate] [blame] [check-ins using]
To Artifact [bd41f6ca0a]:
- File
src/OFTarArchiveEntry.m
— part of check-in
[f4a5590b58]
at
2016-07-03 13:29:21
on branch trunk
— Add -[OFTarArchiveEntry description]
Also includes a small typo fix for -[OFZIPArchiveEntry description] and
adds the mode to OFZIP's Tar archive listing. (user: js, size: 4801) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
174 175 176 177 178 179 180 181 | _toRead = 0; } if (_size % 512 != 0) [_stream readIntoBuffer: buffer exactLength: 512 - (_size % 512)]; } @end | > > > > > > > > > > > > > > > > > > > > > > > > > | 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | _toRead = 0; } if (_size % 512 != 0) [_stream readIntoBuffer: buffer exactLength: 512 - (_size % 512)]; } - (OFString*)description { void *pool = objc_autoreleasePoolPush(); OFString *ret = [OFString stringWithFormat: @"<%@: %p\n" @"\tFile name = %@\n" @"\tMode = %06o\n" @"\tSize = %" PRIu64 @"\n" @"\tModification date = %@\n" @"\tType = %u\n" @"\tTarget file name = %@\n" @"\tOwner = %@\n" @"\tGroup = %@\n" @"\tDevice major = %" PRIu32 @"\n" @"\tDevice minor = %" PRIu32 @"\n" @">", [self class], self, _fileName, _mode, _size, _modificationDate, _type, _targetFileName, _owner, _group, _deviceMajor, _deviceMinor]; [ret retain]; objc_autoreleasePoolPop(pool); return [ret autorelease]; } @end |