Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace ZipStream;
6
 
7
enum CompressionMethod: int
8
{
9
    /**
10
     * The file is stored (no compression)
11
     */
12
    case STORE = 0x00;
13
 
14
    // 0x01: legacy algorithm - The file is Shrunk
15
    // 0x02: legacy algorithm - The file is Reduced with compression factor 1
16
    // 0x03: legacy algorithm - The file is Reduced with compression factor 2
17
    // 0x04: legacy algorithm - The file is Reduced with compression factor 3
18
    // 0x05: legacy algorithm - The file is Reduced with compression factor 4
19
    // 0x06: legacy algorithm - The file is Imploded
20
    // 0x07: Reserved for Tokenizing compression algorithm
21
 
22
    /**
23
     * The file is Deflated
24
     */
25
    case DEFLATE = 0x08;
26
 
27
    // /**
28
    //  * Enhanced Deflating using Deflate64(tm)
29
    //  */
30
    // case DEFLATE_64 = 0x09;
31
 
32
    // /**
33
    //  * PKWARE Data Compression Library Imploding (old IBM TERSE)
34
    //  */
35
    // case PKWARE = 0x0a;
36
 
37
    // // 0x0b: Reserved by PKWARE
38
 
39
    // /**
40
    //  * File is compressed using BZIP2 algorithm
41
    //  */
42
    // case BZIP2 = 0x0c;
43
 
44
    // // 0x0d: Reserved by PKWARE
45
 
46
    // /**
47
    //  * LZMA
48
    //  */
49
    // case LZMA = 0x0e;
50
 
51
    // // 0x0f: Reserved by PKWARE
52
 
53
    // /**
54
    //  * IBM z/OS CMPSC Compression
55
    //  */
56
    // case IBM_ZOS_CMPSC = 0x10;
57
 
58
    // // 0x11: Reserved by PKWARE
59
 
60
    // /**
61
    //  * File is compressed using IBM TERSE
62
    //  */
63
    // case IBM_TERSE = 0x12;
64
 
65
    // /**
66
    //  * IBM LZ77 z Architecture
67
    //  */
68
    // case IBM_LZ77 = 0x13;
69
 
70
    // // 0x14: deprecated (use method 93 for zstd)
71
 
72
    // /**
73
    //  * Zstandard (zstd) Compression
74
    //  */
75
    // case ZSTD = 0x5d;
76
 
77
    // /**
78
    //  * MP3 Compression
79
    //  */
80
    // case MP3 = 0x5e;
81
 
82
    // /**
83
    //  * XZ Compression
84
    //  */
85
    // case XZ = 0x5f;
86
 
87
    // /**
88
    //  * JPEG variant
89
    //  */
90
    // case JPEG = 0x60;
91
 
92
    // /**
93
    //  * WavPack compressed data
94
    //  */
95
    // case WAV_PACK = 0x61;
96
 
97
    // /**
98
    //  * PPMd version I, Rev 1
99
    //  */
100
    // case PPMD_1_1 = 0x62;
101
 
102
    // /**
103
    //  * AE-x encryption marker
104
    //  */
105
    // case AE_X_ENCRYPTION = 0x63;
106
}