ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.reader Namespace / PktDecoder Class / PktDecoder Constructor
The decoder specifications.
The HeaderDecoder instance.
The stream where to read data from.
The bit stream reader agent.
Whether or not truncation mode is required.
The maximum number of code-blocks to read before ncbquit

In This Topic
    PktDecoder Constructor
    In This Topic
    Creates an empty PktDecoder object associated with given decoder specifications and HeaderDecoder. This object must be initialized thanks to the restart method before being used.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal decSpec As DecoderSpecs, _
       ByVal hd As HeaderDecoder, _
       ByVal ehs As RandomAccessIO, _
       ByVal src As BitstreamReaderAgent, _
       ByVal isTruncMode As Boolean, _
       ByVal maxCB As Integer _
    )

    Parameters

    decSpec
    The decoder specifications.
    hd
    The HeaderDecoder instance.
    ehs
    The stream where to read data from.
    src
    The bit stream reader agent.
    isTruncMode
    Whether or not truncation mode is required.
    maxCB
    The maximum number of code-blocks to read before ncbquit
    See Also