| CompressionUtilityCreateDecompressor Method |
Creates a decompressor for the specified stream.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static Stream CreateDecompressor(
this Stream source,
CompressionType type,
long uncompressedSize
)
<ExtensionAttribute>
Public Shared Function CreateDecompressor (
source As Stream,
type As CompressionType,
uncompressedSize As Long
) As Stream
public:
[ExtensionAttribute]
static Stream^ CreateDecompressor(
Stream^ source,
CompressionType type,
long long uncompressedSize
)
[<ExtensionAttribute>]
static member CreateDecompressor :
source : Stream *
type : CompressionType *
uncompressedSize : int64 -> Stream
Parameters
- source
- Type: System.IOStream
The stream to read the compressed data from. - type
- Type: Ookii.JumboCompressionType
The type of compression to use. - uncompressedSize
- Type: SystemInt64
The size of the stream's data after compression, or -1 if unknown.
Return Value
Type:
StreamA stream that decompresses the data according to the specified compression type, or
source itself
if
None was specified.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also