pack

pack

ri

 ------------------------------------------------------------- Array#pack
      arr.pack ( aTemplateString ) -> aBinaryString
 ------------------------------------------------------------------------
      Packs the contents of _arr_ into a binary sequence according to the
      directives in _aTemplateString_ (see the table below) Directives
      ``A,'' ``a,'' and ``Z'' may be followed by a count, which gives the
      width of the resulting field. The remaining directives also may
      take a count, indicating the number of array elements to convert.
      If the count is an asterisk (`` * ''), all remaining array elements
      will be converted. Any of the directives `` sSiIlL '' may be
      followed by an underscore (`` _ '') to use the underlying
      platform's native size for the specified type