External Representation

An external representation of a CFString object in Core Foundation is the string data in a form that can be written to disk and read back in on the same platform or on a different platform. The format of an externally represented CFString object is a CFData object. If the encoding of the characters is Unicode, the data usually includes a special character called a BOM (for "byte order mark") that designates the endianness of the data. When the external representation of a string is read, Core Foundation evaluates the BOM and does any necessary byte swapping. If the encoding is Unicode and there is no BOM, the data is assumed to be big-endian. When you use String Services to write out an external representation of Unicode characters, the BOM is always inserted.


© 1999 Apple Computer, Inc. – (Last Updated 07 September 99)