# File lib/satyr.rb, line 173
    def duphash(opts = {})
      opts = {:frames => 0, :flags => :normal, :prefix => ""}.merge(opts)
      str_pointer = Satyr::FFI.sr_thread_get_duphash @struct.to_ptr, opts[:frames], opts[:prefix], opts[:flags]
      raise SatyrError, "Failed to compute duphash" if str_pointer.null?
      hash = str_pointer.read_string
      Satyr::set_encoding hash
      Satyr::FFI.free str_pointer
      hash
    end