22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#import "OFStream.h"
#import "OFString.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidFormatException.h"
#import "OFOutOfRangeException.h"
extern uint32_t OFZIPArchiveReadField32(const uint8_t **, uint16_t *);
extern uint64_t OFZIPArchiveReadField64(const uint8_t **, uint16_t *);
OFString *
OFZIPArchiveEntryVersionToString(uint16_t version)
{
const char *attrCompat = NULL;
switch (version >> 8) {
case OFZIPArchiveEntryAttributeCompatibilityMSDOS:
|
<
<
<
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFStream.h"
#import "OFString.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidFormatException.h"
#import "OFOutOfRangeException.h"
OFString *
OFZIPArchiveEntryVersionToString(uint16_t version)
{
const char *attrCompat = NULL;
switch (version >> 8) {
case OFZIPArchiveEntryAttributeCompatibilityMSDOS:
|