Xceed Real-Time Zip for .NET Documentation
Compress(Byte[],Int32,Int32) Method


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > PPMdCompressedStream Class > Compress Method : Compress(Byte[],Int32,Int32) Method
The array of bytes to compress. Cannot be null.
The byte offset in buffer at which to begin taking the data to compress. Cannot be less than zero.
The maximum number of bytes to be taken from buffer. Cannot be less than zero.
Compresses an array of bytes using the PPMd compression format, specifying the amount of bytes to compress.
Syntax
'Declaration
 
Public Overloads Shared Function Compress( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Byte()
'Usage
 
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value() As Byte
 
value = PPMdCompressedStream.Compress(buffer, offset, count)
public static byte[] Compress( 
   byte[] buffer,
   int offset,
   int count
)

Parameters

buffer
The array of bytes to compress. Cannot be null.
offset
The byte offset in buffer at which to begin taking the data to compress. Cannot be less than zero.
count
The maximum number of bytes to be taken from buffer. Cannot be less than zero.

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