Klasse CoreFoundation.CFNumberRef
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
CoreFoundation
CFNumber
object.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte
Convert thisCFNumber
to abyte
.double
Convert thisCFNumber
to adouble
.float
Convert thisCFNumber
to afloat
.int
intValue()
Convert thisCFNumber
to anint
.long
Convert thisCFNumber
to along
.short
Convert thisCFNumber
to ashort
.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
-
CFNumberRef
public CFNumberRef() -
CFNumberRef
-
-
Methodendetails
-
longValue
public long longValue()Convert thisCFNumber
to along
.This method assumes a 64-bit integer is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
long
-
intValue
public int intValue()Convert thisCFNumber
to anint
.This method assumes a 32-bit integer is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
int
-
shortValue
public short shortValue()Convert thisCFNumber
to ashort
.This method assumes a 16-bit integer is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
short
-
byteValue
public byte byteValue()Convert thisCFNumber
to abyte
.This method assumes an 8-bit integer is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
byte
-
doubleValue
public double doubleValue()Convert thisCFNumber
to adouble
.This method assumes a 64-bit floating point value is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
double
-
floatValue
public float floatValue()Convert thisCFNumber
to afloat
.This method assumes a 32-bit floating point value is stored and does not do type checking. Users should use
CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type conversion. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.- Gibt zurück:
- The corresponding
float
-