I think this can be simplified by doing:
```ruby
values << ber_data[curr_start_offset, curr_length]
```