iTextSharp.text.pdf.fonts.cmaps.CMapToUnicode.CreateStringFromBytes C# (CSharp) Method

CreateStringFromBytes() private method

private CreateStringFromBytes ( byte bytes ) : String
bytes byte
return String
        private String CreateStringFromBytes(byte[] bytes)
        {
            String retval = null;
            if (bytes.Length == 1) {
                retval = new String((char)(bytes[0] & 0xff), 1);
            } else {
                retval = new String((char)((bytes[0]&0xff)*256 + (bytes[1]&0xff)), 1);
            }
            return retval;
        }