Are you sure that `i` and `offset_ + i` are always between bounds? I'd add a check.