set method
Sets the byte at the specified index.
index
the index
value
the byte value (0-255)
Implementation
void set(int index, int value) {
if (value < 0 || value > 255) {
throw InvalidArgumentException('Byte value must be between 0 and 255, got: $value');
}
_bytes[index] = value;
}