parameters: (s,typ)
return_statement: return a
docstring: Convert data block from a 3DS file to a numpy array.
docstring_summary: Convert data block from a 3DS file to a numpy array.
docstring_tokens: Convert data block from a 3DS file to a numpy array .
function: def string_to_array(s,typ):
      """Convert data block from a 3DS file to a numpy array."""
      a = numpy.fromstring(s,typ)
      if sys.byteorder == 'big':
          a.byteswap(True)
      return a
function_tokens: def string_to_array ( s , typ ) : a = numpy . fromstring ( s , typ ) if sys . byteorder == 'big' : a . byteswap ( True ) return a