Package com.sun.jna.platform.mac
Klasse CoreFoundation.CFStringRef
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
com.sun.jna.platform.mac.CoreFoundation.CFStringRef
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
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.-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
Placeholder for a reference to aCFString
object. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic CoreFoundation.CFStringRef
Convenience function which callsCoreFoundation.CFStringCreateWithCharacters(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, char[], com.sun.jna.platform.mac.CoreFoundation.CFIndex)
to create a newCoreFoundation.CFStringRef
from the given JavaString
and returns its reference pointer.Convert a reference to a Core Foundations String into itsString
Von Klasse geerbte Methoden com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
getTypeID, isTypeID, release, retain
Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
CFStringRef
public CFStringRef() -
CFStringRef
-
-
Methodendetails
-
createCFString
Convenience function which callsCoreFoundation.CFStringCreateWithCharacters(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, char[], com.sun.jna.platform.mac.CoreFoundation.CFIndex)
to create a newCoreFoundation.CFStringRef
from the given JavaString
and returns its reference pointer.This reference must be released with
CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
to avoid leaking references.- Parameter:
s
- AString
.- Gibt zurück:
- An immutable string containing
s
, ornull
if there was a problem creating the object.
-
stringValue
Convert a reference to a Core Foundations String into itsString
- Gibt zurück:
- The corresponding
String
, or null if the conversion failed.
-