C# Class DSDecmp.Formats.CompositeFormat

A format that is composed of multiple formats. When compressing, the input is compressed using the best contained format. When decompressing, all contained formats will try to decompress the file, until one succeeds.
Inheritance: DSDecmp.Formats.CompressionFormat
Exibir arquivo Open project: SciresM/FEAT

Public Methods

Method Description
Compress ( System instream, long inLength, System outstream ) : int

Compresses the given input using the contained format that yields the best results in terms of size reduction.

Decompress ( System instream, long inLength, System outstream ) : long

Attempts to decompress the given input by letting all contained formats try to decompress the input.

ParseCompressionOptions ( string args ) : int

Handles the compression options for each of the contained compression formats.

Supports ( System stream, long inLength ) : bool

Checks if any of the contained formats supports the given input.

Protected Methods

Method Description
CompositeFormat ( ) : System

Creates a new composite format based on the given formats.

CompositeFormat ( IEnumerable formats ) : System

Creates a new composite format based on the given sequence of formats.

Method Details

CompositeFormat() protected method

Creates a new composite format based on the given formats.
protected CompositeFormat ( ) : System
return System

CompositeFormat() protected method

Creates a new composite format based on the given sequence of formats.
protected CompositeFormat ( IEnumerable formats ) : System
formats IEnumerable
return System

Compress() public method

Compresses the given input using the contained format that yields the best results in terms of size reduction.
public Compress ( System instream, long inLength, System outstream ) : int
instream System
inLength long
outstream System
return int

Decompress() public method

Attempts to decompress the given input by letting all contained formats try to decompress the input.
public Decompress ( System instream, long inLength, System outstream ) : long
instream System
inLength long
outstream System
return long

ParseCompressionOptions() public method

Handles the compression options for each of the contained compression formats.
public ParseCompressionOptions ( string args ) : int
args string
return int

Supports() public method

Checks if any of the contained formats supports the given input.
public Supports ( System stream, long inLength ) : bool
stream System
inLength long
return bool