Array#pack On Mon, 17 Feb 2003 00:23:45 +0100, Michael Bruschkewitz wrote: > Hello, > I read some data from, for example, Tcp. > These data are read into a String. > Somewhere in these String are 4 bytes, which are the binary > representation of an Integer. > I hope there is a faster, native, solution than: > i = (((s[ofs+0]*256)+s[ofs+1])*256+s[ofs+2])*256+s[ofs+3] > .. but I don't see this.