uint8 function
Converts a value to an 8-bit unsigned integer.
This function takes an integer value and masks it to 8 bits to ensure it is treated as an unsigned 8-bit integer.
param value
The integer value to be converted.
returns The 8-bit unsigned integer representation of the input value.
Implementation
int uint8(int value) {
return value & 0xFF;
}