* Replace Storage implementation with CrystalDiskInfo based implementation. * Formatting. * Code review. * Code review. * Increase space for attribute name in report. * Implement dynamic disk handling for usage sensor. Disable unused warnings. * Further cleanup in NativeMethods.txt and referenced.
16 lines
253 B
C#
16 lines
253 B
C#
using Windows.Win32;
|
|
|
|
namespace LibreHardwareMonitor.Interop;
|
|
|
|
#if NET8_0_OR_GREATER
|
|
|
|
internal static class ByteExtensions
|
|
{
|
|
public static byte[] ToArray(this __byte_4 bytes)
|
|
{
|
|
return bytes.AsReadOnlySpan().ToArray();
|
|
}
|
|
}
|
|
|
|
#endif
|