Files
Blacktempel c542e856d4 Replace Storage implementation with CrystalDiskInfo based implementation (#2015)
* 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.
2025-11-08 10:53:43 +01:00

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