AsExtensions.AsCompressed Method

Tungsten Suite

AsExtensionsAsCompressed Method

Compresses the byte array using System.IO.Compression.DeflateStream

Namespace:  W
Assembly:  Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
Syntax
C#
public static byte[] AsCompressed(
	this byte[] bytes
)

Parameters

bytes
Type: SystemByte
The byte array to compress

Return Value

Type: Byte
A byte array of compressed data

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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