Class CoreFoundation.CFDataRef

java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
oshi.ffm.mac.CoreFoundation.CFDataRef
Enclosing interface:
CoreFoundation

public static class CoreFoundation.CFDataRef extends CoreFoundation.CFTypeRef
A reference to a CFData object
  • Constructor Details

  • Method Details

    • getLength

      public int getLength()
      Get the length of the data in bytes
      Returns:
      Length in bytes
    • getBytePtr

      public MemorySegment getBytePtr()
      Get a pointer to the bytes in the data
      Returns:
      Pointer to bytes
    • getBytes

      public byte[] getBytes()
      Get the data as a byte array
      Returns:
      Byte array containing the data