Sha256: e62476fa9e60d3e50e9ed0062e3a09ceb1f5f0131e84446df8b6174cb8a34bc8

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 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
    extend GirFFI::StructLikeBase

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.10.2 lib/gir_ffi/union_base.rb
gir_ffi-0.10.1 lib/gir_ffi/union_base.rb