CSJ2K.j2k.fileformat.reader.FileFormatReader.readContiguousCodeStreamBox C# (CSharp) Method

readContiguousCodeStreamBox() public method

This method skips the Contiguous codestream box and adds position of contiguous codestream to a vector
If an I/O error ocurred. /// /// If the end of file was reached /// ///
public readContiguousCodeStreamBox ( long pos, int length, long longLength ) : bool
pos long The position in the file /// ///
length int The length of the JP2Header box /// ///
longLength long
return bool
        public virtual bool readContiguousCodeStreamBox(long pos, int length, long longLength)
        {
            // Add new codestream position to position vector
            int ccpos = in_Renamed.Pos;

            if (codeStreamPos == null)
                codeStreamPos = new List<int>(10);
            codeStreamPos.Add((System.Int32) ccpos);

            // Add new codestream length to length vector
            if (codeStreamLength == null)
                codeStreamLength = new List<int>(10);
            codeStreamLength.Add((System.Int32) length);

            return true;
        }