unpack

unpack

ri

 ---------------------------------------------------------- String#unpack
      str.unpack(format)   => anArray
 ------------------------------------------------------------------------
      Decodes _str_ (which may contain binary data) according to the
      format string, returning an array of each value extracted. The
      format string consists of a sequence of single-character
      directives, summarized in the table at the end of this entry. Each
      directive may be followed by a number, indicating the number of
      times to repeat with this directive. An asterisk (`` * '') will use
      up all remaining elements. The directives  sSiIlL  may each be
      followed by an underscore (`` _ '') to use the underlying
      platform's native size for the specified type