HFSUniStr255

Mac OS X header: CoreServices/CoreServices.h  
Mac OS 9 header: Files.h  

Used by the File Manager to return Unicode strings.

struct HFSUniStr255 {
    UInt16 length; 
    UniChar unicode[255];
};
typedef const HFSUniStr255* ConstHFSUniStr255Param;
Field descriptions
length

The number of unicode characters in the string.

unicode

The string, in unicode characters.

Discussion

This data type is a string of up to 255 16-bit Unicode characters, with a preceding 16-bit length (number of characters). Note that only the first length characters have meaningful values; the remaining characters may be set to arbitrary values. A caller should always assume that the entire structure will be modified, even if the actual string length is less than 255.


© 2001 Apple Computer, Inc. (Last Updated July 17, 2001)