ByteExtensions.SetHighNibble Method
Definition
Returns a new byte with the high nibble (bits 4-7) set to the specified value.
public static Byte SetHighNibble(this Byte value, Byte nibble);
Parameters
| Name | Type | Description |
|---|---|---|
| value | Byte | The byte value. |
| nibble | Byte | The nibble value to set. Only the lower 4 bits are used. |
Returns
A new byte with the high nibble replaced.