PowerUI.Compression.Compressor Class Reference

Detailed Description

An interface for a compression algorithm. Use e.g. Compression.Get("zlib") instead.

Inheritance diagram for PowerUI.Compression.Compressor:
PowerUI.Compression.BrotliCompressor PowerUI.Compression.ZlibCompressor

Public Member Functions

virtual string[] GetNames ()
 The names of the compressor. More...
 
byte[] Decompress (Stream source)
 When an algorithm supports it, this figures out the right amount of bytes to decompress. More...
 
byte[] Decompress (Stream source, int byteCount)
 When an algorithm supports it, this figures out the right amount of bytes to decompress. More...
 
void Decompress (Stream source, byte[] target)
 When an algorithm supports it, this figures out the right amount of bytes to decompress. More...
 
void Decompress (Stream source, byte[] target, int offset, int size)
 When an algorithm supports it, this figures out the right amount of bytes to decompress. More...
 
virtual byte[] Decompress (Stream source, byte[] target, int offset, ref int output_size)
 Decompresses 'output_size' original bytes from source into target. Essentially target should be at least 'output_size' in length. More...
 

Protected Member Functions

void SizeRequired ()
 

Member Function Documentation

byte [] PowerUI.Compression.Compressor.Decompress ( Stream  source)
inline

When an algorithm supports it, this figures out the right amount of bytes to decompress.

byte [] PowerUI.Compression.Compressor.Decompress ( Stream  source,
int  byteCount 
)
inline

When an algorithm supports it, this figures out the right amount of bytes to decompress.

void PowerUI.Compression.Compressor.Decompress ( Stream  source,
byte[]  target 
)
inline

When an algorithm supports it, this figures out the right amount of bytes to decompress.

void PowerUI.Compression.Compressor.Decompress ( Stream  source,
byte[]  target,
int  offset,
int  size 
)
inline

When an algorithm supports it, this figures out the right amount of bytes to decompress.

virtual byte [] PowerUI.Compression.Compressor.Decompress ( Stream  source,
byte[]  target,
int  offset,
ref int  output_size 
)
inlinevirtual

Decompresses 'output_size' original bytes from source into target. Essentially target should be at least 'output_size' in length.

Reimplemented in PowerUI.Compression.BrotliCompressor, and PowerUI.Compression.ZlibCompressor.

virtual string [] PowerUI.Compression.Compressor.GetNames ( )
inlinevirtual

The names of the compressor.

Reimplemented in PowerUI.Compression.BrotliCompressor, and PowerUI.Compression.ZlibCompressor.

void PowerUI.Compression.Compressor.SizeRequired ( )
inlineprotected