示例#1
0
        public static string ReadValidString(this PPTMemory pm, IntPtr pOffset, uint pSize, params Int32[] offsets)
        {
            string tempString = pm.ReadStringUnicode(pOffset, pSize, offsets);

            int escapeIndex = tempString.IndexOf("\u0000");

            if (escapeIndex > -1)
            {
                tempString = tempString.Remove(escapeIndex);
            }

            escapeIndex = tempString.IndexOf("\\u");
            if (escapeIndex > -1)
            {
                tempString = tempString.Remove(escapeIndex);
            }

            return(tempString);
        }
示例#2
0
 public static string ReadStringUnicode(this PPTMemory pm, IntPtr pOffset, uint pSize, params Int32[] offsets)
 {
     return(pm.ReadStringUnicode(pm.ReadOffset(pOffset, offsets), pSize));
 }