Class Decoder
The LZMA decoder class
Implements
Inherited Members
Namespace: SharpSevenZip.Sdk.Compression.Lzma
Assembly: SharpSevenZip.dll
Syntax
public class Decoder : ICoder
Constructors
| Edit this page View SourceDecoder()
Initializes the Lzma Decoder class.
Declaration
public Decoder()
Methods
| Edit this page View SourceCode(Stream, Stream, long, long, ICodeProgress?)
Codes a stream with LZMA algorithm to an output stream
Declaration
public void Code(Stream inStream, Stream outStream, long inSize, long outSize, ICodeProgress? progress)
Parameters
Type | Name | Description |
---|---|---|
Stream | inStream | The input stream |
Stream | outStream | The output stream |
long | inSize | The input size |
long | outSize | The output size |
ICodeProgress | progress | Progress interface |
SetDecoderProperties(byte[])
Sets decoder properties
Declaration
public void SetDecoderProperties(byte[] properties)
Parameters
Type | Name | Description |
---|---|---|
byte[] | properties | Array of byte properties |
Train(Stream)
Trains a stream
Declaration
public bool Train(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream to train. |
Returns
Type | Description |
---|---|
bool | true if Ok; otherwise, false. |