Differences From Artifact [bfaab86a9d]:
- File src/OFStream.h — part of check-in [138a7a1934] at 2013-10-10 02:26:40 on branch trunk — OFStream: Add -[unreadFromBuffer:length:]. (user: js, size: 37555) [annotate] [blame] [check-ins using]
To Artifact [e0f5011968]:
- File
src/OFStream.h
— part of check-in
[d83d3aa719]
at
2013-10-10 13:18:35
on branch trunk
— Add OFDeflateStream.
No compression support yet, only decompression.
Decompression speed is acceptable for productive use, but there is still
a lot of room for optimization as this is a very straightforward
implementation without much optimization. (user: js, size: 37556) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1063 1064 1065 1066 1067 1068 1069 | * decompression - in which it would otherwise be necessary to read byte by * byte to avoid consuming bytes that need to be parsed by something else - * for example the data descriptor in a ZIP archive which immediately follows * the compressed data. * * If the stream is a file, this method does not change any data in the file. * | | | 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 | * decompression - in which it would otherwise be necessary to read byte by * byte to avoid consuming bytes that need to be parsed by something else - * for example the data descriptor in a ZIP archive which immediately follows * the compressed data. * * If the stream is a file, this method does not change any data in the file. * * If the stream is seekable, a seek operation will discard any data which was * unread. * * @param buffer The buffer to unread * @param length The length of the buffer to unread */ - (void)unreadFromBuffer: (const void*)buffer length: (size_t)length; |
︙ | ︙ |