Knight Data Access Layer
DecompressBytes Method
Example 




KellermanSoftware.NetDataAccessLayer Namespace > Compression Class : DecompressBytes Method
Decompress the passed bytes using LZO compression
Syntax
Public Function DecompressBytes( _
   ByVal inputBytes() As Byte _
) As Byte()
Dim instance As Compression
Dim inputBytes() As Byte
Dim value() As Byte
 
value = instance.DecompressBytes(inputBytes)
public byte[] DecompressBytes( 
   byte[] inputBytes
)
public: byte[]* DecompressBytes( 
   byte[]* inputBytes
) 
public:
array<byte>^ DecompressBytes( 
   array<byte>^ inputBytes
) 

Parameters

inputBytes
Example
string inputString = "".PadRight(1000, 'z');
            Compression compression = new Compression();
            byte[] inputBytes = Encoding.UTF8.GetBytes(inputString);
            byte[] compressedBytes = compression.CompressBytes(inputBytes);
            byte[] decompressedBytes = compression.DecompressBytes(compressedBytes);
Dim inputString As String = "".PadRight(1000, "z"c)
            Dim compression As New Compression()
            Dim inputBytes() As Byte = Encoding.UTF8.GetBytes(inputString)
            Dim compressedBytes() As Byte = compression.CompressBytes(inputBytes)
            Dim decompressedBytes() As Byte = compression.DecompressBytes(compressedBytes)
Requirements

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

See Also

Reference

Compression Class
Compression Members