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); }
public static string ReadStringUnicode(this PPTMemory pm, IntPtr pOffset, uint pSize, params Int32[] offsets) { return(pm.ReadStringUnicode(pm.ReadOffset(pOffset, offsets), pSize)); }