iTextSharp.text.pdf.CMapAwareDocumentFont.DecodeSingleCID C# (CSharp) Метод

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

private DecodeSingleCID ( byte bytes, int offset, int len ) : String
bytes byte
offset int
len int
Результат String
        private String DecodeSingleCID(byte[] bytes, int offset, int len)
        {
            if (toUnicodeCmap != null){
                if (offset + len > bytes.Length)
                    throw new  IndexOutOfRangeException(MessageLocalization.GetComposedMessage("invalid.index.1", offset + len));
                string s = toUnicodeCmap.Lookup(bytes, offset, len);
                if (s != null)
                    return s;
                if (len != 1 || cidbyte2uni == null)
                    return null;
            }

            if (len == 1){
                if (cidbyte2uni == null)
                    return "";
                else
                    return new String(cidbyte2uni, 0xff & bytes[offset], 1);
            }

            throw new ArgumentException("Multi-byte glyphs not implemented yet");
        }