Package com.sun.jna.platform.mac
Class CoreFoundation.CFStringRef
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
com.sun.jna.platform.mac.CoreFoundation.CFStringRef
- All Implemented Interfaces:
- NativeMapped
- Enclosing interface:
- CoreFoundation
A reference to a 
CFString object, which “encapsulates” a Unicode
 string along with its length. CFString is an opaque type that defines
 the characteristics and behavior of CFString objects.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classPlaceholder for a reference to aCFStringobject.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CoreFoundation.CFStringRefConvenience function which callsCoreFoundation.CFStringCreateWithCharacters(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, char[], com.sun.jna.platform.mac.CoreFoundation.CFIndex)to create a newCoreFoundation.CFStringReffrom the given JavaStringand returns its reference pointer.Convert a reference to a Core Foundations String into itsStringMethods inherited from class com.sun.jna.platform.mac.CoreFoundation.CFTypeRefgetTypeID, isTypeID, release, retainMethods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
- 
Constructor Details- 
CFStringRefpublic CFStringRef()
- 
CFStringRef
 
- 
- 
Method Details- 
createCFStringConvenience function which callsCoreFoundation.CFStringCreateWithCharacters(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, char[], com.sun.jna.platform.mac.CoreFoundation.CFIndex)to create a newCoreFoundation.CFStringReffrom the given JavaStringand returns its reference pointer.This reference must be released with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)to avoid leaking references.- Parameters:
- s- A- String.
- Returns:
- An immutable string containing s, ornullif there was a problem creating the object.
 
- 
stringValueConvert a reference to a Core Foundations String into itsString- Returns:
- The corresponding String, or null if the conversion failed.
 
 
-