@@ -15,15 +15,15 @@ * file. */ #import "OFObject.h" #import "OFKernelEventObserver.h" +#import "OFString.h" #import "OFTarArchiveEntry.h" OF_ASSUME_NONNULL_BEGIN -@class OFString; @class OFStream; /*! * @class OFTarArchive OFTarArchive.h ObjFW/OFTarArchive.h * @@ -35,13 +35,19 @@ enum { OF_TAR_ARCHIVE_MODE_READ, OF_TAR_ARCHIVE_MODE_WRITE, OF_TAR_ARCHIVE_MODE_APPEND } _mode; + of_string_encoding_t _encoding; OF_KINDOF(OFStream *) _Nullable _lastReturnedStream; } +/*! + * @brief The encoding to use for the archive. + */ +@property (nonatomic) of_string_encoding_t encoding; + /*! * @brief A stream for reading the current entry * * @note This is only available in read mode. *