C# Class DSDecmp.Formats.Nitro.NullCompression

'Compression' format without any compression whatsoever. Compression using this format will only prepend 0x00 plus the original file size to the file.
Inheritance: DSDecmp.Formats.Nitro.NitroCFormat
Mostra file Open project: SciresM/FEAT

Public Methods

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

'Compresses' the given input stream using the NULL format.

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

'Decompresses' the given input stream using the NULL format.

NullCompression ( ) : System

Creates a new instance of the NULL-compression format.

Supports ( System stream, long inLength ) : bool

Checks if the given stream is (or could be) 'compressed' using the NULL compression format.

Method Details

Compress() public method

'Compresses' the given input stream using the NULL format.
public Compress ( System instream, long inLength, System outstream ) : int
instream System
inLength long
outstream System
return int

Decompress() public method

'Decompresses' the given input stream using the NULL format.
public Decompress ( System instream, long inLength, System outstream ) : long
instream System
inLength long
outstream System
return long

NullCompression() public method

Creates a new instance of the NULL-compression format.
public NullCompression ( ) : System
return System

Supports() public method

Checks if the given stream is (or could be) 'compressed' using the NULL compression format.
public Supports ( System stream, long inLength ) : bool
stream System
inLength long
return bool