From byte array to integer

Still got my C head on:

How in Ruby would I go about extracting a four byte integer from a byte
array?
Feel like I have gone back 10 years.

Thanks,
Jim.

···

--
Posted via http://www.ruby-forum.com/.

Look into String#unpack (
class String - RDoc Documentation)

Cheers,

···

--
Avdi

On 2/19/07, Jim Bob <james_b@anytimenow.com> wrote:

Still got my C head on:

How in Ruby would I go about extracting a four byte integer from a byte
array?
Feel like I have gone back 10 years.

Thanks,
Jim.

--
Posted via http://www.ruby-forum.com/\.

Thanks that works great.

This forum is one of the best things about Ruby!

Thanks again,
Jim.

···

--
Posted via http://www.ruby-forum.com/.