Convert byte values to a different base range [0, base-1]. Each byte (0-255) is scaled proportionally to the target base. Matches Rust data_to_base function.
Input bytes
Target base (e.g., 6 for base-6)
Array of values in range [0, base-1]
Convert byte values to a different base range [0, base-1]. Each byte (0-255) is scaled proportionally to the target base. Matches Rust data_to_base function.