29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
@interface OFZooArchive: OFObject
{
OF_KINDOF(OFStream *) _stream;
uint_least8_t _mode;
OFStringEncoding _encoding;
uint16_t _minVersionNeeded;
uint8_t _headerType;
OFZooArchiveEntry *_Nullable _currentEntry;
#ifdef OF_ZOO_ARCHIVE_M
@public
#endif
OFStream *_Nullable _lastReturnedStream;
@protected
OFStreamOffset _lastHeaderOffset;
size_t _lastHeaderLength;
}
/**
* @brief The encoding to use for the archive. Defaults to UTF-8.
*/
@property (nonatomic) OFStringEncoding encoding;
/**
* @brief Creates a new OFZooArchive object with the specified stream.
*
* @param stream A stream from which the Zoo archive will be read.
* This needs to be an OFSeekableStream. For writing, the stream
* needs to support both reading and writing at the same time.
* @param mode The mode for the Zoo file. Valid modes are "r" for reading and
|
>
>
>
>
>
>
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
@interface OFZooArchive: OFObject
{
OF_KINDOF(OFStream *) _stream;
uint_least8_t _mode;
OFStringEncoding _encoding;
uint16_t _minVersionNeeded;
uint8_t _headerType;
OFString *_Nullable _archiveComment;
OFZooArchiveEntry *_Nullable _currentEntry;
#ifdef OF_ZOO_ARCHIVE_M
@public
#endif
OFStream *_Nullable _lastReturnedStream;
@protected
OFStreamOffset _lastHeaderOffset;
size_t _lastHeaderLength;
}
/**
* @brief The encoding to use for the archive. Defaults to UTF-8.
*/
@property (nonatomic) OFStringEncoding encoding;
/**
* @brief The archive comment.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *archiveComment;
/**
* @brief Creates a new OFZooArchive object with the specified stream.
*
* @param stream A stream from which the Zoo archive will be read.
* This needs to be an OFSeekableStream. For writing, the stream
* needs to support both reading and writing at the same time.
* @param mode The mode for the Zoo file. Valid modes are "r" for reading and
|