What about that helper ?
```
def packed_int(i)
  [i].pack("i")
end
```
or
```
def packed_int(*ary)
  ary.pack("i*")
end
```