fn apply_scale_to_bytes(bytes: &mut [u8], scale_factor: f64) -> Option<()>
Applies a floating-point scale factor to a byte slice representing an unsigned or signed integer.