Xceed .NET Libraries Documentation
Xceed.Compression Assembly / Xceed.Compression Namespace / ManagedPPMdCompressor Class / WritePPMdZipHeader Method
The stream the header will be written to.
The allocator size.
The maximum model order.
Method of model restoration if memory is insufficient.


In This Topic
    WritePPMdZipHeader Method
    In This Topic
    Writes the PPMd algorithm properties in the specified stream using the Zip Specification format.
    Syntax
    'Declaration
     
    Public Shared Sub WritePPMdZipHeader( _
       ByVal stream As Stream, _
       ByVal allocatorSize As Integer, _
       ByVal modelOrder As Byte, _
       ByVal method As ModelRestorationMethod _
    ) 
    'Usage
     
    Dim stream As Stream
    Dim allocatorSize As Integer
    Dim modelOrder As Byte
    Dim method As ModelRestorationMethod
     
    ManagedPPMdCompressor.WritePPMdZipHeader(stream, allocatorSize, modelOrder, method)
    public static void WritePPMdZipHeader( 
       Stream stream,
       int allocatorSize,
       byte modelOrder,
       ModelRestorationMethod method
    )

    Parameters

    stream
    The stream the header will be written to.
    allocatorSize
    The allocator size.
    modelOrder
    The maximum model order.
    method
    Method of model restoration if memory is insufficient.
    Remarks

    The header is 2 bytes long and has the following format. In C, the header would be defined like this (from least-significant to most-significant bit):

    struct PPMdZipHeader
    {
      unsigned short modelOrder : 4;
      unsigned short AllocatorSize : 8;
      unsigned short Method : 4;
    };

    The values are written in Intel little-endian byte order.

    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