ObjFW
Loading...
Searching...
No Matches
OFZIPArchiveEntry+Private.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This file is part of ObjFW. It may be distributed under the terms of the
7 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8 * the packaging of this file.
9 *
10 * Alternatively, it may be distributed under the terms of the GNU General
11 * Public License, either version 2 or 3, which can be found in the file
12 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13 * file.
14 */
15
16#import "OFZIPArchive.h"
17
18OF_ASSUME_NONNULL_BEGIN
19
20@interface OFZIPArchiveEntry ()
21@property (readonly, nonatomic)
22 uint16_t of_lastModifiedFileTime, of_lastModifiedFileDate;
23@property (readonly, nonatomic) uint32_t of_startDiskNumber;
24@property (readonly, nonatomic) int64_t of_localFileHeaderOffset;
25
26- (instancetype)of_init OF_METHOD_FAMILY(init);
27- (instancetype)of_initWithStream: (OFStream *)stream
28 OF_METHOD_FAMILY(init) OF_DIRECT;
29- (uint64_t)of_writeToStream: (OFStream *)stream OF_DIRECT;
30@end
31
32@interface OFMutableZIPArchiveEntry ()
33@property (readwrite, nonatomic, setter=of_setLocalFileHeaderOffset:)
34 int64_t of_localFileHeaderOffset;
35@end
36
37OF_ASSUME_NONNULL_END
A class which represents a mutable entry in the central directory of a ZIP archive.
Definition OFMutableZIPArchiveEntry.h:30
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:586
A base class for different types of streams.
Definition OFStream.h:188
A class which represents an entry in the central directory of a ZIP archive.
Definition OFZIPArchiveEntry.h:107