Developer Andreas Hausladen has released an updated version of his patch for System.ByteStrings which gives you access to PAnsiChar and other types in Delphi XE8 Firemonkey. The string types that this patch enables are: ShortString, AnsiString, AnsiChar, PAnsiChar, PPAnsiChar, UTF8String, PUTF8String, RawByteString, and PRawByteString. The patch is basically a hex edited version of the System.ByteStrings O and DCU files for Android, IOS, OSX, and Windows. Using this patch can help ease the transition away from these types as you bring your older Object Pascal code forward on to mobile devices. There are versions for XE6 and XE7 too. I don’t think the System.ByteStrings patch files work with Appmethod. There are also a couple of other solutions for using PAnsiChar with the NextGen compiler which are ORawByteString.pas and MarshaledAString.
Unofficial ByteStrings Patch To Enable AnsiString Support In Delphi XE8 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.