Artifact 8c0c5952820d1007975e0ae6c3087d1b3b5db7e3f874ee4924abf1fbfb386569:
- File
src/OFDeflate64Stream.h
— part of check-in
[134a1121c7]
at
2016-05-29 13:02:05
on branch trunk
— Rename OFInflateStream back to OFDeflateStream
The reason for renaming to OFInflateStream was to have one stream for
decompression and one for compression in order to reduce memory usage if
only one of the two is needed, as the ivar layout will be smaller then.
However, it is more consistent with other stream classes to have one
stream that can handle both. The increased memory footprint of having
ivars for compression and decompression can be solved by having a
pointer to those instead. This will not incur any performance penalty,
as the pointer will be dereferenced instead of the ivars, meaning the
overhead is only getting the pointer from the ivars once. (user: js, size: 888) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 * Jonathan Schleifer <js@heap.zone> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFDeflateStream.h" OF_ASSUME_NONNULL_BEGIN /*! * @class OFDeflate64Stream OFDeflate64Stream.h ObjFW/OFDeflate64Stream.h * * @brief A class that handles Deflate64 decompression transparently for an * underlying stream. */ @interface OFDeflate64Stream: OFDeflateStream @end OF_ASSUME_NONNULL_END