Xceed .NET Libraries Documentation
Compress(Byte[]) Method


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > PPMdCompressedStream Class > Compress Method : Compress(Byte[]) Method
The array of bytes to compress. Cannot be null.
Compresses an array of bytes using the PPMd compression format and CompressionLevel.Highest.
Syntax
'Declaration
 
Public Overloads Shared Function Compress( _
   ByVal buffer() As Byte _
) As Byte()
'Usage
 
Dim buffer() As Byte
Dim value() As Byte
 
value = PPMdCompressedStream.Compress(buffer)
public static byte[] Compress( 
   byte[] buffer
)

Parameters

buffer
The array of bytes to compress. Cannot be null.

Return Value

An array of bytes containing the compressed data. Can be empty.
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

PPMdCompressedStream Class
PPMdCompressedStream Members
Overload List