# File lib/gpgme.rb, line 812 def self.from_str(buf, copy = true) rdh = Array.new err = GPGME::gpgme_data_new_from_mem(rdh, buf, buf.length) exc = GPGME::error_to_exception(err) raise exc if exc rdh[0] end