Sha256: 3c2285e93b35866e605a5182335c367deedaf44c06f75190382c4dcce91fee91
Contents?: true
Size: 478 Bytes
Versions: 9
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module GirFFI module InfoExt # Extensions for GObjectIntrospection::IFieldInfo needed by GirFFI module IFieldInfo def layout_specification [name.to_sym, field_type.to_ffi_type, offset] end def related_array_length_field index = field_type.array_length container.fields[index] if index > -1 end end end end GObjectIntrospection::IFieldInfo.send :include, GirFFI::InfoExt::IFieldInfo
Version data entries
9 entries across 9 versions & 1 rubygems