I was thinking something to avoid the indexing with the associated bounds checks and unwinding, something like:

```rust
for (t, x) in $buf.slice($i, $i + $len).enumerate() {
    out |= *x << t * 8
}
```