Class FileCompressor
Since C# only has GZipStream until .NET 4.0, we are forced to implement our own packing system for artifact files. We compact all artifacts into a single GZip Stream with the header before the file name and contents. The header contains the file name length and file length (in bytes).
Inherited Members
Namespace: UnityEditor.Build.Pipeline.Utilities
Assembly: solution.dll
Syntax
public class FileCompressor
Methods
Name | Description |
---|---|
Compress(string, string) | Compresses all artifacts located at a specified directory. |
Decompress(string, string) | Extracts all artifacts compressed in an archive. |