DellSmbiosSmiLib
Utility.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DellFanManagement.DellSmbiosSmiLib
{
///
/// General helper methods.
///
static clast Utility
{
///
/// Extract a byte value from a uint.
///
/// Which byte to grab.
/// uint value to grab the byte from.
/// Extracted byte.
public static byte GetByte(int index, uint from)
{
return (byte)((from & (0xFF > (index * 8));
}
}
}