ByteExtensions.SetLowNibble Method ​
Definition ​
Returns a new byte with the low nibble (bits 0-3) set to the specified value.
c#
public static Byte SetLowNibble(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 low nibble replaced.