Class FileUtilFFM
java.lang.Object
oshi.ffm.util.FileUtilFFM
FFM-specific extensions to
FileUtil for reading native types from buffers.-
Method Summary
Modifier and TypeMethodDescriptionstatic longReads a nativelongvalue from a ByteBuffer, using the platform's native long size.static longReads a native pointer value from a ByteBuffer, using the platform's native pointer size.static longReads a nativesize_tvalue from a ByteBuffer, using the platform's native size_t size.
-
Method Details
-
readNativeLongFromBuffer
Reads a nativelongvalue 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
Reads a nativesize_tvalue 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
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
-