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

CalcSubrOffsetSize() приватный Метод

private CalcSubrOffsetSize ( int Offset, int Size ) : int
Offset int
Size int
Результат int
        internal int CalcSubrOffsetSize(int Offset,int Size)
        {
            // Set the size to 0
            int OffsetSize = 0;
            // Go to the beginning of the private dict
            Seek(Offset);
            // Go until the end of the private dict
            while (GetPosition() < Offset+Size)
            {
                int p1 = GetPosition();
                GetDictItem();
                int p2 = GetPosition();
                // When reached to the subrs offset
                if (key=="Subrs") {
                    // The Offsize (minus the subrs key)
                    OffsetSize = p2-p1-1;
                }
                // All other keys are ignored
            }
            // return the size
            return OffsetSize;
        }