Sha256: d0b343284812d3f04df9a94cb9cca15844e5089b0ebb5620170c54b7e83a0626

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

GLib.load_class :IConv

module GLib
  # Overrides for IConv
  class IConv
    def self.open to_codeset, from_codeset
      to_ptr = GirFFI::InPointer.from(:utf8, to_codeset)
      from_ptr = GirFFI::InPointer.from(:utf8, from_codeset)
      result_ptr = Lib.g_iconv_open(to_ptr, from_ptr)
      wrap(result_ptr)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/ffi-glib/iconv.rb
gir_ffi-0.7.9 lib/ffi-glib/iconv.rb
gir_ffi-0.7.8 lib/ffi-glib/iconv.rb
gir_ffi-0.7.7 lib/ffi-glib/iconv.rb
gir_ffi-0.7.6 lib/ffi-glib/iconv.rb
gir_ffi-0.7.5 lib/ffi-glib/iconv.rb