|
CompressionExtensionsCompress(Byte, CompressionStrength) Method
|
Compress a byte array using specified compression method.
Namespace: GSF.IO.CompressionAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax<ExtensionAttribute>
Public Shared Function Compress (
source As Byte(),
strength As CompressionStrength
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ Compress(
array<unsigned char>^ source,
CompressionStrength strength
)
[<ExtensionAttribute>]
static member Compress :
source : byte[] *
strength : CompressionStrength -> byte[]
GSF.IO.Compression.CompressionExtensions.Compress = function(source, strength);
View SourceParameters
- source Byte
- The Byte array to compress.
- strength CompressionStrength
- The specified CompressionStrength.
Return Value
ByteA compressed version of the source
Byte array.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Byte. 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