Class CoreFoundation.CFDictionaryRef

java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
oshi.ffm.mac.CoreFoundation.CFDictionaryRef
Direct Known Subclasses:
CoreFoundation.CFMutableDictionaryRef
Enclosing interface:
CoreFoundation

public static class CoreFoundation.CFDictionaryRef extends CoreFoundation.CFTypeRef
A reference to a CFDictionary object
  • Constructor Details

    • CFDictionaryRef

      public CFDictionaryRef(MemorySegment segment)
  • Method Details

    • getValue

      public MemorySegment getValue(CoreFoundation.CFTypeRef key)
      Get a value from the dictionary
      Parameters:
      key - The key
      Returns:
      The value associated with the key, or null if not found
    • getCount

      public long getCount()
      Get the count of key-value pairs in the dictionary
      Returns:
      Number of pairs
    • getValueIfPresent

      public boolean getValueIfPresent(CoreFoundation.CFTypeRef key, MemorySegment value)
      Get a value if present
      Parameters:
      key - The key
      value - Pointer to store the value
      Returns:
      True if the key exists