S
steven.shingler
Hi all,
I'd like to convert an int to a byte array in Ruby.
In C# you can do this:
byte[] b = BitConverter.GetBytes(BufferLength);
Any tips for the ruby equivalent gratefully received
Thanks
Steven
I'd like to convert an int to a byte array in Ruby.
In C# you can do this:
byte[] b = BitConverter.GetBytes(BufferLength);
Any tips for the ruby equivalent gratefully received
Thanks
Steven