CSJ2K.j2k.codestream.reader.HeaderDecoder.checkMarkerLength C# (CSharp) Method

checkMarkerLength() public method

Checks that the marker segment length is correct.
If an I/O error occurs /// ///
public checkMarkerLength ( System ehs, System str ) : void
ehs System The encoded header stream /// ///
str System The string identifying the marker, such as "SIZ marker" /// ///
return void
        public virtual void checkMarkerLength(System.IO.BinaryReader ehs, System.String str)
        {
            long available;
            available = ehs.BaseStream.Length - ehs.BaseStream.Position;
            if ((int) available != 0)
            {
                FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, str + " length was short, attempting to resync.");
            }
        }