Sha256: d3f53dd104e538291acd710fc1495e54bbea32835b9b6069a5c6a603f5f24045

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

require 'gir_ffi/boxed_base'

module GirFFI
  # Base class for generated classes representing GLib unions.
  class UnionBase < ClassBase
    extend FFI::DataConverter
    include GirFFI::StructLikeBase

    def initialize
      @struct = self.class::Struct.new
      @struct.owned = true
      @struct.to_ptr.autorelease = false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/gir_ffi/union_base.rb
gir_ffi-0.14.0 lib/gir_ffi/union_base.rb
gir_ffi-0.13.1 lib/gir_ffi/union_base.rb
gir_ffi-0.13.0 lib/gir_ffi/union_base.rb
gir_ffi-0.12.1 lib/gir_ffi/union_base.rb
gir_ffi-0.12.0 lib/gir_ffi/union_base.rb
gir_ffi-0.11.4 lib/gir_ffi/union_base.rb
gir_ffi-0.11.3 lib/gir_ffi/union_base.rb
gir_ffi-0.11.2 lib/gir_ffi/union_base.rb