public static class CoreFoundation.CFArrayRef extends CoreFoundation.CFTypeRef
CFArray
object.
CFArray is “toll-free bridged” with its Cocoa Foundation counterpart,
NSArray
. Therefore, in a method where you see an NSArray *
parameter, you can pass in a #CFArrayRef
.
Constructor and Description |
---|
CFArrayRef() |
CFArrayRef(Pointer p) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Convenience method for
CoreFoundation.CFArrayGetCount(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef) on this object |
Pointer |
getValueAtIndex(int idx)
Convenience method for
CoreFoundation.CFArrayGetValueAtIndex(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef, com.sun.jna.platform.mac.CoreFoundation.CFIndex) on this object |
getTypeID, isTypeID, release, retain
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
public CFArrayRef()
public CFArrayRef(Pointer p)
public int getCount()
CoreFoundation.CFArrayGetCount(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef)
on this objectpublic Pointer getValueAtIndex(int idx)
CoreFoundation.CFArrayGetValueAtIndex(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef, com.sun.jna.platform.mac.CoreFoundation.CFIndex)
on this objectidx
- The index of the value to retrieve.idx
index.