Xceed.Compression.Silverlight.v6.6 Assembly > Xceed.Compression Namespace > ManagedLZMADecompressor Class : Decompress Method |
'Declaration Public Overrides Function Decompress( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer, _ ByRef endOfData As Boolean, _ ByRef decompressed As Byte(), _ ByRef remaining As Integer _ ) As Integer
When the first call to Decompress is made, a decompression "session" is created. This session remains opened as long as Decompress is called with the parameter endOfData set to false.
During a decompression session, the decompression engine can choose to keep the data to decompress in an internal buffer and return an empty array after a call to Decompress. This could happen if not enough compressed data has yet been provided to determine the
decompressed result.
When Decompress is called with the parameter endOfData set to true, the decompression session is closed and all of the remaining decompressed data is returned. The next call to Decompress will create a new decompression session.
The decompressed array may have a Length greater than the number of bytes returned by the call to Decompress.
Calling the method with an empty buffer has no effect. If you're using your own format, you can use the SetLZMAProperties method to initialize the LZMA engine.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2