def decode_all(type)
      length = @string.length
      value = @string.slice(@index, length).unpack(vr_to_str(type))
      skip(length)
      return value
    end
def decode_all(type)
      length = @string.length
      value = @string.slice(@index, length).unpack(vr_to_str(type))
      skip(length)
      return value
    end
Decodes the entire instance string (typically used for decoding image data).

 @note If multiple numbers are decoded, these are returned in an array.
 @param [String] type the type (vr) of data to decode
 @return [String, Integer, Float, Array] the formatted (decoded) data