ObjFW
Loading...
Searching...
No Matches
OFZIPArchiveEntry.h File Reference
import "OFObject.h"
import "OFArchiveEntry.h"
import "OFMutableZIPArchiveEntry.h"

Go to the source code of this file.

Classes

class  OFZIPArchiveEntry
 A class which represents an entry in the central directory of a ZIP archive. More...
 

Enumerations

enum  OFZIPArchiveEntryAttributeCompatibility {
  OFZIPArchiveEntryAttributeCompatibilityMSDOS = 0 , OFZIPArchiveEntryAttributeCompatibilityAmiga = 1 , OFZIPArchiveEntryAttributeCompatibilityOpenVMS = 2 , OFZIPArchiveEntryAttributeCompatibilityUNIX = 3 ,
  OFZIPArchiveEntryAttributeCompatibilityVM_CMS = 4 , OFZIPArchiveEntryAttributeCompatibilityAtariST = 5 , OFZIPArchiveEntryAttributeCompatibilityOS2HPFS = 6 , OFZIPArchiveEntryAttributeCompatibilityMacintosh = 7 ,
  OFZIPArchiveEntryAttributeCompatibilityZSystem = 8 , OFZIPArchiveEntryAttributeCompatibilityCPM = 9 , OFZIPArchiveEntryAttributeCompatibilityWindowsNTFS = 10 , OFZIPArchiveEntryAttributeCompatibilityMVS = 11 ,
  OFZIPArchiveEntryAttributeCompatibilityVSE = 12 , OFZIPArchiveEntryAttributeCompatibilityAcornRISCOS = 13 , OFZIPArchiveEntryAttributeCompatibilityVFAT = 14 , OFZIPArchiveEntryAttributeCompatibilityAlternateMVS = 15 ,
  OFZIPArchiveEntryAttributeCompatibilityBeOS = 16 , OFZIPArchiveEntryAttributeCompatibilityTandem = 17 , OFZIPArchiveEntryAttributeCompatibilityOS400 = 18 , OFZIPArchiveEntryAttributeCompatibilityOSX = 19
}
 Attribute compatibility part of ZIP versions. More...
 
enum  OFZIPArchiveEntryExtraFieldTag { OFZIPArchiveEntryExtraFieldTagZIP64 = 0x0001 }
 Tags for the extra field. More...
 

Functions

OFStringOFZIPArchiveEntryVersionToString (uint16_t version)
 Converts the ZIP entry version to a string.
 
OFStringOFZIPArchiveEntryCompressionMethodName (OFZIPArchiveEntryCompressionMethod compressionMethod)
 Converts the ZIP entry compression method to a string.
 
size_t OFZIPArchiveEntryExtraFieldFind (OFData *extraField, OFZIPArchiveEntryExtraFieldTag tag, uint16_t *size)
 Gets a pointer to and the size of the extensible data field with the specified tag.
 

Enumeration Type Documentation

◆ OFZIPArchiveEntryAttributeCompatibility

Attribute compatibility part of ZIP versions.

Enumerator
OFZIPArchiveEntryAttributeCompatibilityMSDOS 

MS-DOS and OS/2

OFZIPArchiveEntryAttributeCompatibilityAmiga 

Amiga

OFZIPArchiveEntryAttributeCompatibilityOpenVMS 

OpenVMS

OFZIPArchiveEntryAttributeCompatibilityUNIX 

UNIX

OFZIPArchiveEntryAttributeCompatibilityVM_CMS 

VM/CMS

OFZIPArchiveEntryAttributeCompatibilityAtariST 

Atari ST

OFZIPArchiveEntryAttributeCompatibilityOS2HPFS 

OS/2 HPFS

OFZIPArchiveEntryAttributeCompatibilityMacintosh 

Macintosh

OFZIPArchiveEntryAttributeCompatibilityZSystem 

Z-System

OFZIPArchiveEntryAttributeCompatibilityCPM 

CP/M

OFZIPArchiveEntryAttributeCompatibilityWindowsNTFS 

Windows NTFS

OFZIPArchiveEntryAttributeCompatibilityMVS 

MVS (OS/390 - Z/OS)

OFZIPArchiveEntryAttributeCompatibilityVSE 

VSE

OFZIPArchiveEntryAttributeCompatibilityAcornRISCOS 

Acorn RISC OS

OFZIPArchiveEntryAttributeCompatibilityVFAT 

VFAT

OFZIPArchiveEntryAttributeCompatibilityAlternateMVS 

Alternate MVS

OFZIPArchiveEntryAttributeCompatibilityBeOS 

BeOS

OFZIPArchiveEntryAttributeCompatibilityTandem 

Tandem

OFZIPArchiveEntryAttributeCompatibilityOS400 

OS/400

OFZIPArchiveEntryAttributeCompatibilityOSX 

OS X (Darwin)

◆ OFZIPArchiveEntryExtraFieldTag

Tags for the extra field.

Enumerator
OFZIPArchiveEntryExtraFieldTagZIP64 

ZIP64 extra field tag

Function Documentation

◆ OFZIPArchiveEntryCompressionMethodName()

OFString * OFZIPArchiveEntryCompressionMethodName ( OFZIPArchiveEntryCompressionMethod compressionMethod)
extern

Converts the ZIP entry compression method to a string.

Parameters
compressionMethodThe ZIP entry compression method to convert to a string
Returns
The ZIP entry compression method as a string

◆ OFZIPArchiveEntryExtraFieldFind()

size_t OFZIPArchiveEntryExtraFieldFind ( OFData * extraField,
OFZIPArchiveEntryExtraFieldTag tag,
uint16_t * size )
extern

Gets a pointer to and the size of the extensible data field with the specified tag.

Parameters
extraFieldThe extra field to search for an extensible data field with the specified tag
tagThe tag to look for
sizeA pointer to an uint16_t that should be set to the size
Returns
The index at which the extra field content starts in the OFData, or OFNotFound

◆ OFZIPArchiveEntryVersionToString()

OFString * OFZIPArchiveEntryVersionToString ( uint16_t version)
extern

Converts the ZIP entry version to a string.

Parameters
versionThe ZIP entry version to convert to a string
Returns
The ZIP entry version as a string