Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
ZipStream Namespace Reference

  More...

Namespaces

namespace  Exception
  
 
namespace  Zip64
  
 
namespace  Zs
  
 

Classes

class  CentralDirectoryFileHeader
 
class  DataDescriptor
 
class  EndOfCentralDirectory
 
class  Exception
 
class  File
 
class  GeneralPurposeBitFlag
 
class  LocalFileHeader
 
class  PackField
 
class  Time
 
class  ZipStream
 

Enumerations

enum  CompressionMethod : int { DEFLATE = 0x08 }
 
enum  OperationMode { SIMULATE_LAX }
 
enum  Version : int { ZIP64 = 0x002D }
 

Detailed Description

 

Enumeration Type Documentation

◆ CompressionMethod

Enumerator
DEFLATE 

The file is Deflated.

Enhanced Deflating using Deflate64(tm) PKWARE Data Compression Library Imploding (old IBM TERSE) File is compressed using BZIP2 algorithm LZMA IBM z/OS CMPSC Compression File is compressed using IBM TERSE IBM LZ77 z Architecture Zstandard (zstd) Compression MP3 Compression XZ Compression JPEG variant WavPack compressed data PPMd version I, Rev 1 AE-x encryption marker

◆ OperationMode

Enumerator
SIMULATE_LAX 

Stream file into output stream.

Simulate the zip to figure out the resulting file size

This only supports entries where the file size is known beforehand and deflation is disabled. Simulate the zip to figure out the resulting file size

If the file size is not known beforehand or deflation is enabled, the entry streams will be read and rewound.

If the entry does not support rewinding either, you will not be able to use the same stream in a later operation mode like NORMAL.