Class CoreFoundationFunctions
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.mac.CoreFoundationFunctions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, SYMBOL_LOOKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentstatic MemorySegmentCFArrayCreate(MemorySegment allocator, MemorySegment values, long numValues, MemorySegment callbacks) static longCFArrayGetCount(MemorySegment theArray) static longstatic MemorySegmentCFArrayGetValueAtIndex(MemorySegment theArray, long idx) static longstatic bytestatic MemorySegmentstatic MemorySegmentCFDataCreate(MemorySegment allocator, MemorySegment bytes, long length) static MemorySegmentCFDataGetBytePtr(MemorySegment dataRef) static longCFDataGetLength(MemorySegment dataRef) static longstatic MemorySegmentCFDateFormatterCreate(MemorySegment allocator, MemorySegment locale, long dateStyle, long timeStyle) static MemorySegmentCFDateFormatterGetFormat(MemorySegment formatter) static longstatic MemorySegmentCFDictionaryCreateMutable(MemorySegment allocator, long capacity, MemorySegment keyCallBacks, MemorySegment valueCallBacks) static longCFDictionaryGetCount(MemorySegment theDict) static longstatic MemorySegmentCFDictionaryGetValue(MemorySegment theDict, MemorySegment key) static byteCFDictionaryGetValueIfPresent(MemorySegment theDict, MemorySegment key, MemorySegment value) static voidCFDictionarySetValue(MemorySegment theDict, MemorySegment key, MemorySegment value) static booleanCFEqual(MemorySegment cf1, MemorySegment cf2) static longstatic longstatic MemorySegmentstatic MemorySegmentCFNumberCreate(MemorySegment allocator, long theType, MemorySegment valuePtr) static longCFNumberGetType(MemorySegment number) static longstatic booleanCFNumberGetValue(MemorySegment number, int theType, MemorySegment valuePtr) static voidstatic MemorySegmentstatic MemorySegmentCFStringCreateWithCharacters(MemorySegment allocator, MemorySegment chars, long numChars) static booleanCFStringGetCString(MemorySegment theString, MemorySegment buffer, long bufferSize, int encoding) static longCFStringGetLength(MemorySegment theString) static longCFStringGetMaximumSizeForEncoding(long length, int encoding) static longMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getErrno, getStringFromNativePointer, getStructFromNativePointer, lib, libraryLookup
-
Field Details
-
ARRAY_TYPE_ID
public static final long ARRAY_TYPE_ID -
BOOLEAN_TYPE_ID
public static final long BOOLEAN_TYPE_ID -
DATA_TYPE_ID
public static final long DATA_TYPE_ID -
DATE_TYPE_ID
public static final long DATE_TYPE_ID -
DICTIONARY_TYPE_ID
public static final long DICTIONARY_TYPE_ID -
NUMBER_TYPE_ID
public static final long NUMBER_TYPE_ID -
STRING_TYPE_ID
public static final long STRING_TYPE_ID
-
-
Constructor Details
-
CoreFoundationFunctions
public CoreFoundationFunctions()
-
-
Method Details
-
CFAllocatorGetDefault
- Throws:
Throwable
-
CFRelease
- Throws:
Throwable
-
CFRetain
- Throws:
Throwable
-
CFGetRetainCount
- Throws:
Throwable
-
CFEqual
- Throws:
Throwable
-
CFCopyDescription
- Throws:
Throwable
-
CFStringCreateWithCharacters
public static MemorySegment CFStringCreateWithCharacters(MemorySegment allocator, MemorySegment chars, long numChars) throws Throwable - Throws:
Throwable
-
CFStringGetLength
- Throws:
Throwable
-
CFStringGetCString
public static boolean CFStringGetCString(MemorySegment theString, MemorySegment buffer, long bufferSize, int encoding) throws Throwable - Throws:
Throwable
-
CFStringGetMaximumSizeForEncoding
-
CFNumberGetValue
public static boolean CFNumberGetValue(MemorySegment number, int theType, MemorySegment valuePtr) throws Throwable - Throws:
Throwable
-
CFNumberGetType
- Throws:
Throwable
-
CFNumberCreate
public static MemorySegment CFNumberCreate(MemorySegment allocator, long theType, MemorySegment valuePtr) throws Throwable - Throws:
Throwable
-
CFDataGetLength
- Throws:
Throwable
-
CFDataGetBytePtr
- Throws:
Throwable
-
CFDataCreate
public static MemorySegment CFDataCreate(MemorySegment allocator, MemorySegment bytes, long length) throws Throwable - Throws:
Throwable
-
CFBooleanGetValue
- Throws:
Throwable
-
CFArrayGetCount
- Throws:
Throwable
-
CFArrayGetValueAtIndex
public static MemorySegment CFArrayGetValueAtIndex(MemorySegment theArray, long idx) throws Throwable - Throws:
Throwable
-
CFArrayCreate
public static MemorySegment CFArrayCreate(MemorySegment allocator, MemorySegment values, long numValues, MemorySegment callbacks) throws Throwable - Throws:
Throwable
-
CFDictionaryGetCount
- Throws:
Throwable
-
CFDictionaryGetValue
public static MemorySegment CFDictionaryGetValue(MemorySegment theDict, MemorySegment key) throws Throwable - Throws:
Throwable
-
CFDictionaryGetValueIfPresent
public static byte CFDictionaryGetValueIfPresent(MemorySegment theDict, MemorySegment key, MemorySegment value) throws Throwable - Throws:
Throwable
-
CFDictionarySetValue
public static void CFDictionarySetValue(MemorySegment theDict, MemorySegment key, MemorySegment value) throws Throwable - Throws:
Throwable
-
CFDictionaryCreateMutable
public static MemorySegment CFDictionaryCreateMutable(MemorySegment allocator, long capacity, MemorySegment keyCallBacks, MemorySegment valueCallBacks) throws Throwable - Throws:
Throwable
-
CFGetTypeID
- Throws:
Throwable
-
CFLocaleCopyCurrent
- Throws:
Throwable
-
CFDateFormatterCreate
public static MemorySegment CFDateFormatterCreate(MemorySegment allocator, MemorySegment locale, long dateStyle, long timeStyle) throws Throwable - Throws:
Throwable
-
CFDateFormatterGetFormat
- Throws:
Throwable
-
CFArrayGetTypeID
-
CFBooleanGetTypeID
-
CFDataGetTypeID
-
CFDateGetTypeID
-
CFDictionaryGetTypeID
-
CFNumberGetTypeID
-
CFStringGetTypeID
-