ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.entropy.encoder Namespace / MQCoder Class / NumCodedBytes Property

In This Topic
    NumCodedBytes Property
    In This Topic
    Returns the number of bytes that are necessary from the compressed output stream to decode all the symbols that have been coded this far. The number of returned bytes does not include anything coded previous to the last time the 'terminate()' or 'reset()' methods where called.

    The values returned by this method are then to be used in finishing the length calculation with the 'finishLengthCalculation()' method, after compensation of the offset in the number of bytes due to previous terminated segments.

    This method should not be called if the current coding pass is to be terminated. The 'terminate()' method should be called instead.

    The calculation is done based on the type of length calculation specified at the constructor.

    Syntax
    'Declaration
     
    
    Public Overridable ReadOnly Property NumCodedBytes As Integer
    public virtual int NumCodedBytes {get;}

    Property Value

    The number of bytes in the compressed output stream necessary to decode all the information coded this far.
    See Also