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
/**
8
 * ZipStream execution operation modes
9
 */
10
enum OperationMode
11
{
12
    /**
13
     * Stream file into output stream
14
     */
15
    case NORMAL;
16
 
17
    /**
18
     * Simulate the zip to figure out the resulting file size
19
     *
20
     * This only supports entries where the file size is known beforehand and
21
     * deflation is disabled.
22
     */
23
    case SIMULATE_STRICT;
24
 
25
    /**
26
     * Simulate the zip to figure out the resulting file size
27
     *
28
     * If the file size is not known beforehand or deflation is enabled, the
29
     * entry streams will be read and rewound.
30
     *
31
     * If the entry does not support rewinding either, you will not be able to
32
     * use the same stream in a later operation mode like `NORMAL`.
33
     */
34
    case SIMULATE_LAX;
35
}