Class FileUtilFFM

java.lang.Object
oshi.ffm.util.FileUtilFFM

@ThreadSafe public final class FileUtilFFM extends Object
FFM-specific extensions to FileUtil for reading native types from buffers.
  • Method Details

    • readNativeLongFromBuffer

      public static long readNativeLongFromBuffer(ByteBuffer buff)
      Reads a native long value from a ByteBuffer, using the platform's native long size.
      Parameters:
      buff - The bytebuffer to read from
      Returns:
      The next value as a Java long
    • readSizeTFromBuffer

      public static long readSizeTFromBuffer(ByteBuffer buff)
      Reads a native size_t value from a ByteBuffer, using the platform's native size_t size.
      Parameters:
      buff - The bytebuffer to read from
      Returns:
      The next value as a Java long
    • readPointerFromBuffer

      public static long readPointerFromBuffer(ByteBuffer buff)
      Reads a native pointer value from a ByteBuffer, using the platform's native pointer size.
      Parameters:
      buff - The bytebuffer to read from
      Returns:
      The next value as a Java long representing the pointer address, or 0 if insufficient data