iTextSharp.text.pdf.CFFFontSubset.CountEntireIndexRange C# (CSharp) Метод

CountEntireIndexRange() защищенный Метод

protected CountEntireIndexRange ( int indexOffset ) : int
indexOffset int
Результат int
        protected int CountEntireIndexRange(int indexOffset)
        {
            // Go to the beginning of the index
            Seek(indexOffset);
            // Read the count field
            int count = GetCard16();
            // If count==0 -> size=2
            if (count==0)
                return 2;
            else
            {
                // Read the offsize field
                int indexOffSize = GetCard8();
                // Go to the last element of the offset array
                Seek(indexOffset+2+1+count*indexOffSize);
                // The size of the object array is the value of the last element-1
                int size = GetOffset(indexOffSize)-1;
                // Return the size of the entire index
                return 2+1+(count+1)*indexOffSize+size;
            }
        }